Lines Matching defs:lock
35 lock its data structures.
58 @name Flags passed to lock functions
62 /** A flag passed to a locking callback when the lock was allocated as a
63 * read-write lock, and we want to acquire or release the lock for writing. */
65 /** A flag passed to a locking callback when the lock was allocated as a
66 * read-write lock, and we want to acquire or release the lock for reading. */
69 * for the lock; if we can't get the lock immediately, we will instead
82 /** A recursive lock is one that can be acquired multiple times at once by the
83 * same thread. No other process can allocate the lock until the thread that
86 /* A read-write lock is one that allows multiple simultaneous readers, but
107 /** Function to allocate and initialize new lock of type 'locktype'.
110 /** Funtion to release all storage held in 'lock', which was created
112 void (*free)(void *lock, unsigned locktype);
113 /** Acquire an already-allocated lock at 'lock' with mode 'mode'.
115 int (*lock)(unsigned mode, void *lock);
116 /** Release a lock at 'lock' using mode 'mode'. Returns 0 on success,
118 int (*unlock)(unsigned mode, void *lock);
155 * lock for the condition.
158 /** Function to wait for a condition variable. The lock 'lock'
168 int (*wait_condition)(void *cond, void *lock,
221 /** Enable debugging wrappers around the current lock callbacks. If Libevent