type define for synchronize logic in ZFFramework More...
Go to the source code of this file.
Macros | |
| #define | zfsynchronize(obj) |
| similar to synchronized in Java | |
| #define | zfsynchronizeLock(obj) |
| similar to zfsynchronize, while you take the responsibility to close it by zfsynchronizeUnlock | |
| #define | zfsynchronizeUnlock(obj) |
| see zfsynchronizeLock | |
type define for synchronize logic in ZFFramework
| #define zfsynchronize | ( | obj | ) |
similar to synchronized in Java
usage:
| #define zfsynchronizeLock | ( | obj | ) |
similar to zfsynchronize, while you take the responsibility to close it by zfsynchronizeUnlock
usage:
it's not necessary to put them in the same code block, but you must ensure the lock and unlock are paired