Makes Objectcache service more accessible with simple defined macros.
Objectcache-Macros | Makes Objectcache service more accessible with simple defined macros. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file of Objectcache-Macros. |
Functions | |
iobuffer | |
LOCKIOBUFFER_OBJECTCACHE | Locks the io buffer and returns a pointer to it in iobuffer. |
UNLOCKIOBUFFER_OBJECTCACHE | Unlocks the locked io buffer and sets the pointer to NULL. |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2011 Jörg Seebohn
Header file of Objectcache-Macros.
iobuffer | |
LOCKIOBUFFER_OBJECTCACHE | Locks the io buffer and returns a pointer to it in iobuffer. |
UNLOCKIOBUFFER_OBJECTCACHE | Unlocks the locked io buffer and sets the pointer to NULL. |
Locks the io buffer and returns a pointer to it in iobuffer.
#define LOCKIOBUFFER_OBJECTCACHE( /*out*/iobuffer ) (objectcache_maincontext().iimpl->lock_iobuffer(objectcache_maincontext().object, (iobuffer)))
Unlocks the locked io buffer and sets the pointer to NULL.
#define UNLOCKIOBUFFER_OBJECTCACHE( iobuffer ) (objectcache_maincontext().iimpl->unlock_iobuffer(objectcache_maincontext().object, (iobuffer)))