picofuse-objc

NXAutoreleasePool.h
Go to the documentation of this file.
1 
5 #pragma once
6 
7 struct NXAutoreleasePage;
8 
26 @private
27  NXAutoreleasePool *_previous;
28  struct NXAutoreleasePage *_page;
29 }
30 
36 
44 - (void)addObject:(id)object;
45 
49 - (void)drain;
50 
55 - (size_t)count;
56 
57 @end
NXAutoreleasePool * currentPool()
Returns the current pool of the calling thread.
A pool of objects, which are released when the pool is drained.
size_t count()
Returns the number of times objects have been added to the pool since it was last drained...
The base class for objects in the Foundation framework.
Definition: NXObject.h:28
void drain()
Releases the objects in the pool, last first.