ZFFramework
|
thread utility More...
#include "ZFThread.h"
Go to the source code of this file.
Macros | |
#define | zfautoRelease(obj) |
make object autorelease, which would be released by the owner thread | |
#define | zfautoRelease(obj) |
make object autorelease, which would be released by the owner thread | |
thread utility
#define zfautoRelease | ( | obj | ) |
make object autorelease, which would be released by the owner thread
calling this function will add the object to current thread's autorelease pool
assert failure if current thread isn't started or registered by ZFThread
note that which time to release the objects in pool, is depends on implementation
ADVANCED:
this method depends on ZFThread's implementation
if no ZFThread's implementation found, we'll try to add to global memory pool (see ZFAutoReleasePool::instance), which should be drained manually
so, try not to abuse this method, since:
#define zfautoRelease | ( | obj | ) |
make object autorelease, which would be released by the owner thread
calling this function will add the object to current thread's autorelease pool
assert failure if current thread isn't started or registered by ZFThread
note that which time to release the objects in pool, is depends on implementation
ADVANCED:
this method depends on ZFThread's implementation
if no ZFThread's implementation found, we'll try to add to global memory pool (see ZFAutoReleasePool::instance), which should be drained manually
so, try not to abuse this method, since: