|
Last change
on this file was
2,
checked in by jglee, 11 years ago
|
|
first commit
|
-
Property svn:executable set to
*
|
|
File size:
704 bytes
|
| Line | |
|---|
| 1 | |
|---|
| 2 | #include "bsyslib_list.h" |
|---|
| 3 | |
|---|
| 4 | #ifndef BSYNCLIB_RESOURCE_POOL_H__ |
|---|
| 5 | #define BSYNCLIB_RESOURCE_POOL_H__ |
|---|
| 6 | |
|---|
| 7 | typedef struct |
|---|
| 8 | { |
|---|
| 9 | BSYSlib_List_Handle hResources; |
|---|
| 10 | BSYSlib_List_Handle hFree; |
|---|
| 11 | } BSYNClib_ResourcePool; |
|---|
| 12 | |
|---|
| 13 | BSYNClib_ResourcePool * BSYNClib_ResourcePool_Create(void); |
|---|
| 14 | |
|---|
| 15 | void BSYNClib_ResourcePool_Destroy(BSYNClib_ResourcePool * psPool); |
|---|
| 16 | |
|---|
| 17 | void BSYNClib_ResourcePool_Add(BSYNClib_ResourcePool * psPool, void * pvResource); |
|---|
| 18 | |
|---|
| 19 | void BSYNClib_ResourcePool_Remove(BSYNClib_ResourcePool * psPool, void * pvResource); |
|---|
| 20 | |
|---|
| 21 | void * BSYNClib_ResourcePool_Acquire(BSYNClib_ResourcePool * psPool); |
|---|
| 22 | |
|---|
| 23 | void BSYNClib_ResourcePool_Release(BSYNClib_ResourcePool * psPool, void * pvResource); |
|---|
| 24 | |
|---|
| 25 | #endif /* BSYNCLIB_RESOURCE_POOL_H__ */ |
|---|
| 26 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.