1460770992-3c1d76a4-3d75-4c5e-a4a1-b842bad4eec3

1. (canceled)
2. A non-transitory computer-readable storage media storing instructions which, when executed by a computing device, causes the computing device to perform steps comprising:
receiving, at a processor, a resource request from a task, the task associated with a resource tracking object including:
(i) a reference to a template including an entry identifying the task and a pointer to a callback function, wherein the callback function is specific to the resource requested, and
(ii) an entries object including an entry for the resource requested with a corresponding balance of current resources consumed and a corresponding predefined resource limit of the resource requested, wherein values of the balance and the limit are defined specific to the resource;

registering, at the processor, the resource for tracking in the template; and
updating, at the processor, the balance of resources consumed, wherein the updating comprises comparing the balance of resources consumed against the predefined resource limit, and setting a flag when the balance exceeds the predefined resource limit.
3. The non-transitory computer-readable storage media of claim 2, further comprising:
in response to detecting, at the processor, prior to returning the task to user space, that the flag is set, calling a first callback function associated with a first resource entry in the entries object, wherein a first balance associated with the first resource entry exceeds a first predefined limit associated with the first resource entry.
4. The non-transitory computer-readable storage media of claim 3, further comprising:
identifying, at the processor, a second resource entry in the entries object, wherein a second balance associated with the second resource entry exceeds a second predefined limit associated with the second resource entry; and
calling, at the processor, a second callback function associated with the second resource entry.
5. The non-transitory computer-readable storage media of claim 3, wherein detecting that the flag is set occurs in response to detecting that execution of the task has reached an Asynchronous System Trap boundary.
6. The non-transitory computer-readable storage media of claim 2, further comprising:
registering a second resource, the registering comprising cloning the template to create a second template and adding a new entry to the second template for the second resource.
7. The non-transitory computer-readable storage media of claim 6, wherein the new entry comprises a unique resource identifier and a reference to a callback function.
8. The non-transitory computer-readable storage media of claim 2, further comprising:
identifying, at the processor, a second resource entry in the entries object, wherein a second balance associated with the second resource entry exceeds a second predefined limit associated with the second resource entry; and
calling, at the processor, a second callback function associated with the second resource entry.
9. The non-transitory computer-readable storage media of claim 2, further comprising:
allocating the resource tracking object associated with the task prior to processing an initial request for a resource from the task, the allocating including allocating an entries object with a number of entries corresponding to a current number of entries in the template.
10. The non-transitory computer-readable storage media of claim 2, wherein the entries object comprises at least one entry and the at least one entry is of a double-entry entry type.
11. The non-transitory computer-readable storage media of claim 2, wherein the entries object comprises at least one entry and the at least one entry is of a declining entry type.
12. The non-transitory computer-readable storage media of claim 2, wherein the balance is calculated on demand.
13. The non-transitory computer-readable storage media of claim 2, wherein the template is referenced by a plurality of resource tracking objects.
14. The non-transitory computer-readable storage media of claim 2, further comprising:
the task including one or more threads;
the threads being associated with the resource tracking object.
15. The non-transitory computer-readable storage media of claim 2, further comprising:
prohibiting the removal of the resource from the template.
16. The non-transitory computer-readable storage media of claim 2, wherein the resource request is a request to allocate or deallocate the resource and performing the resource request includes allocating or deallocating the resource.
17. The non-transitory computer-readable storage media of claim 2, wherein the resource is at least one of CPU cycles, memory, disk IO, network IO, or Mach ports.
18. A system comprising:
a processor;
a task associated with a resource tracking object;
the resource tracking object including:
(i) a reference to a template, the template including an entry identifying the task and a pointer to a callback function, wherein the callback function is specific to a resource requested, and
(ii) an entries object including an entry for the resource requested with a corresponding balance of current resources consumed and a corresponding predefined resource limit of the resource requested, wherein values of the balance and the limit are defined specific to the resource;

the processor receiving the resource request from the task; and
the processor updating the balance of resources consumed related to the task, wherein the updating comprises setting a flag when the resource consumption balance exceeds the predefined resource limit.
19. A computer-implemented method comprising:
receiving, at a processor, a resource request from a task, the task associated with a resource tracking object including:
(i) a reference to a template including an entry identifying the task and a pointer to a callback function, wherein the callback function is specific to the resource requested, and
(ii) an entries object including an entry for the resource requested with a corresponding balance of current resources consumed and a corresponding predefined resource limit of the resource requested, wherein values of the balance and the limit are defined specific to the resource;

registering, at the processor, the resource for tracking in the template; and
updating, at the processor, the balance of resources consumed, wherein the updating comprises comparing the balance of resources consumed against the predefined resource limit, and setting a flag when the balance exceeds the predefined resource limit.
20. A non-transitory computer-readable storage media storing instructions which, when executed by a computing device, causes the computing device to perform steps comprising:
updating, by a processor, an entry corresponding to a resource in a resource tracking object, the resource tracking object including:
(i) a reference to a template including an entry identifying a task and a pointer to a callback function, wherein the callback function is specific to the resource, and
(ii) an entries object including an entry for the resource with a corresponding balance of current resources consumed and a corresponding predefined resource limit of the resource, wherein values of the balance and the limit are defined specific to the resource;
the updating includes recording the balance in the entry specified in the request, and setting a flag when the balance for the entry exceeds the resource limit defined in the entry;

identifying, by a processor, that the flag is set prior to the task returning to user space; and
calling, by a processor, the callback function specific the resource.
21. The non-transitory computer-readable storage media of claim 20, wherein the callback function is defined to react to an over consumption of the resource in a resource specific manner.

The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.

1. A release device for releasing a medical implant from an insertion device, in which the implant can be released first at a distal end of the implant by way of a relative motion between a first insertion element and a second insertion element in a direction of insertion, comprising:
a retaining body for retaining the implant in the insertion device, having a proximal end, which, in the state of use, is distant from a distal end of the insertion device, and a distal end, which, in the state of use, faces the distal end of the insertion device,
wherein the retaining body has at least one segment that radially delimits at least one space that extends between one of the insertion elements and the at least one segment,
wherein the implant has at least one retaining element at a proximal end thereof, the retaining body configured to interact with the at least one retaining element, and
wherein at least one region of the at least one retaining element, upon interaction with the retaining body, is inserted into the at least one space in a direction of insertion and is withdrawn from the at least one space against the direction of insertion.
2. A release device for releasing a medical implant from an insertion device, in which the implant can be released first at a proximal end of the implant by way of a relative motion between a first insertion element and a second insertion element in a direction of insertion, comprising:
a retaining body for retaining the implant in the insertion device, having a proximal end, which, in the state of use, is distant from a distal end of the insertion device, and a distal end, which, in the state of use, faces the distal end of the insertion device,
wherein the retaining body has at least one segment that radially delimits at least one space that extends between one of the insertion elements and the at least one segment,
wherein the implant has at least one retaining element at a distal end of the retaining element the retaining body configured to interact with the at least one retaining element, and
wherein at least one region of the at least one retaining element, upon interaction with the retaining body, is inserted into the at least one space in a direction of insertion and is withdrawn from the at least one space against the direction of insertion.
3. The release device according to claim 1, wherein the at least one space is disposed at one of the proximal end of the retaining body or at the distal end of the retaining body.
4. The release device according to claim 1, wherein the retaining body is fastened to at least one of a distal end and a proximal end of at least one of the insertion elements.
5. The release device according to claim 1, wherein the retaining body is adhered to an inner insertion element by a UV-curable adhesive.
6. The release device according to claim 1, wherein the retaining body comprises at least two segments, which radially delimit at least one space that extends between an inner insertion element and each of the at least two segments.
7. The release device according to claim 6, wherein the at least two segments are formed on a same component and are disposed in a region of a component that extends in a circumferential direction about one of the insertion elements.
8. The release device according to claim 6, wherein the at least two segments are formed on two different components.
9. The release device according to claim 1, wherein the retaining body comprises a material that is selected from the group consisting of: a ceramic, a glass, a rubber, a plastic, a metal, a metal that is visible to x-rays, polyamide, acrylnitrile butadiene styrene, steel, Nitinol, tantalum, gold or platinum.
10. The release device according to claim 1 and further including the insertion device for inserting a medical implant.
11. The release device according to claim 2 and further including the insertion device for inserting a medical implant.
12. The release device according to claim 10, wherein the insertion device further comprises a stopper which is operative to limit motion of the implant in one of a direction of a proximal end of the insertion device or in a direction of the distal end of the insertion device, and induces ejection of the implant.
13. The release device according to claim 10, and further including the medical implant, and where the medical implant comprises:
a base body;
at least one retaining element configured for interaction with the retaining body of the release device, wherein the at least one retaining element has at least one change in direction, which forms a total angle of more than 90\xb0 relative to a region of the base body that extends substantially parallel to an inner axis of the base body, and is oriented in the radial direction with respect to the inner axis, wherein at least one region of the at least one retaining element, upon interaction with the retaining body, is inserted into the at least one space of the retaining body in the direction of insertion and is be withdrawn from the at least one space against the direction of insertion.
14. The release device according to claim 11, and further including the medical implant, and where the medical implant comprises:
a base body;
at least one retaining element configured for interaction with the retaining body of the release device, wherein the at least one retaining element has at least one change in direction, which forms a total angle of more than 90\xb0 relative to a region of the base body that extends substantially parallel to an inner axis of the base body, and is oriented in a radial direction with respect to the inner axis, and wherein at least one region of the at least one retaining element, upon interaction with the retaining body, is inserted into at least one space of the retaining body against the direction of insertion and is withdrawn from the at least one space in the direction of insertion.
15. The release device according to claim 13, wherein the medical implant base body has at least one basic structure, and wherein the at least one retaining element comprises the basic structure of the base body at least by more than 50%.
16. The release device according to claim 13, wherein the at least one retaining element of the medical implant has a region that extends substantially in a radial direction toward an inner axis of the implant and has a length that is greater than a thickness of a segment of the retaining body of the release device.
17. The release device according to claim 13, wherein the medical implant is a self-expanding implant.
18. The release device according to claim 13, wherein the release device is configured for connecting to the medical implant using the retaining body of the release device in the insertion device, through the following steps:
placing at least the proximal end of the implant, against the direction of insertion, at one of the insertion elements, so that at least the proximal end of the implant is disposed proximally with respect to the retaining body;
moving at least the proximal end of the implant in the direction of insertion, so that at least one region of at least one retaining element of the proximal end of the implant is inserted in the direction of insertion into a space that is radially delimited by the retaining body; and
placing the retaining body comprising the implant in at least one of the insertion elements.
19. A method for connecting the release device according to claim 14 to the medical implant of claim 14, using the retaining body of the release device in the insertion device, the method comprising the following steps:
placing at least the distal end of the implant, in the direction of insertion, at one of the insertion elements, so that at least the distal end of the implant is disposed distally with respect to the retaining body;
moving at least the distal end of the implant against the direction of insertion, so that at least one region of at least one retaining element of the distal end of the implant is inserted against the direction of insertion into a space that is radially delimited by the retaining body; and
placing the retaining body comprising the implant in at least one of the insertion elements.