Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kObjectPool.h
Go to the documentation of this file.
1
10 #ifndef K_API_OBJECT_POOL_H
11 #define K_API_OBJECT_POOL_H
12
13 #include <kApi/kApiDef.h>
14 #include <kApi/Utils/kObjectPool.x.h>
15
22 //typedef kObject kObjectPool; --forward-declared in kApiDef.x.h
23
24 /*
25 * Public
26 */
27
37 kInlineFx(kStatus) kObjectPool_Reclaim(kObjectPool pool, kObject object)
38 {
39 return xkObjectPool_VTable(pool)->VReclaim(pool, object);
40 }
41
42 #endif
kInlineFx
#define kInlineFx(TYPE)
Inline method declaration helper.
Definition: kApiDef.h:26
kObjectPool
Supports reclaiming objects upon destruction.
kApiDef.h
Core Zen type declarations.
kObject
Root of all Zen classes.
kStatus
Represents an error code.
kObjectPool::kObjectPool_Reclaim
kStatus kObjectPool_Reclaim(kObjectPool pool, kObject object)
Receives an object just prior to its destruction.
Definition: kObjectPool.h:37