InnoDB Plugin
1.0
|
Functions | |
UNIV_INLINE sync_array_t * | sync_array_get_and_reserve_cell (void *object, ulint type, const char *file, ulint line, ulint *index) |
Variables | |
ulong | srv_sync_array_size |
The wait array for synchronization primitives
Inline code
Created 9/5/1995 Heikki Tuuri
UNIV_INLINE sync_array_t* sync_array_get_and_reserve_cell | ( | void * | object, |
ulint | type, | ||
const char * | file, | ||
ulint | line, | ||
ulint * | index | ||
) |
Get an instance of the sync wait array and reserve a wait array cell in the instance for waiting for an object. The event of the cell is reset to nonsignalled state. If reserving cell of the instance fails, try to get another new instance until we can reserve an empty cell of it.
object | in: pointer to the object to wait for |
type | in: lock request type |
file | in: file where requested |
line | in: line where requested |
index | out: index of the reserved cell |
ulong srv_sync_array_size |
User configured sync array size