Functions |
| int | R_LOCK_new (R_LOCK_CTX *lock_ctx, R_LOCK **lock) |
| | Creates a new R_LOCK object lock. More...
|
| int | R_LOCK_free (R_LOCK *lock) |
| | Frees the R_LOCK object lock. More...
|
| int | R_LOCK_get_new_lock_id (R_LOCK *lock, char *name, int *lock_id) |
| | Returns a new identifier for the R_LOCK object lock. More...
|
| int | R_LOCK_get_lock_name (R_LOCK *lock, int lock_id, char **pname) |
| | Returns the lock name for the R_LOCK object lock. More...
|
| int | R_LOCK_add (R_LOCK *lock, int *value, int amount, int lock_id) |
| | Updates the value of an integer under the protection of the R_LOCK object lock. More...
|
| int | R_LOCK_r_lock (R_LOCK *lock, int lock_id) |
| | Retrieves a read lock for the R_LOCK object lock. More...
|
| int | R_LOCK_w_lock (R_LOCK *lock, int lock_id) |
| | Retrieves a write lock for the R_LOCK object lock. More...
|
| int | R_LOCK_r_unlock (R_LOCK *lock, int lock_id) |
| | Clears the read lock for the R_LOCK object lock. More...
|
| int | R_LOCK_w_unlock (R_LOCK *lock, int lock_id) |
| | Clears the write lock for the R_LOCK object lock. More...
|
| int R_CDECL | R_lockid_new (char *name) |
| | Returns a new lock identifier (that is, lock table index number) name for a new lock. More...
|
| void R_CDECL | R_lockids_free (void) |
| | Frees all current locks and should be called if new locks have been created and are not required. More...
|
| int R_CDECL | R_lock_num (void) |
| | Returns the number of locks required by the library. More...
|
| char* R_CDECL | R_lock_get_name (int lockid) |
| | Returns the textual description for the lock identifier lockid. More...
|
| R_LOCK_CB_T* R_CDECL | R_lock_get_cb (void) |
| | Returns the callback that is called by R_lock_ctrl(). More...
|
| R_LOCKED_ADD_CB_T* R_CDECL | R_locked_add_get_cb (void) |
| | Returns the callback called via R_lock(). More...
|
| int R_CDECL | R_lock_set_cb (R_LOCK_CB_T *func) |
| | Sets the locking callback that enables and disables locks. More...
|
| int R_CDECL | R_locked_add_set_cb (R_LOCKED_ADD_CB_T *func) |
| | Sets the callback called via R_lock(). More...
|
| int R_CDECL | R_lock_ctrl (int mode, int lockid, char *file, int line) |
| | Sets or clears a specified lock. More...
|
| int R_CDECL | R_locked_add (int *pointer, int amount, int lockid, char *file, int line) |
| | Performs a locked add operation for the lock. More...
|
| R_THREAD_ID_CB_T* R_CDECL | R_thread_id_get_cb (void) |
| | Returns the callback called via R_thread_id(). More...
|
| int R_CDECL | R_thread_id_set_cb (R_THREAD_ID_CB_T *func) |
| | Sets the callback that returns a unique identifier for each thread. More...
|
| unsigned long R_CDECL | R_thread_id (void) |
| | Returns the unique identifier for the current thread in which the function is called. More...
|
| int | R_lock_w (int lockid) |
| | Retrieves a write lock for the lock lockid. More...
|
| int | R_lock_r (int type) |
| | Retrieves a read lock for the lock type. More...
|
| int | R_lock (int mode, int lockid, char *file, int line) |
| | Sets a specified lock. More...
|