CK_RWCOHORT_INIT3
Initialize instance of a cohort-based reader-writer lock type
Usage
#include <ck_rwcohort.h>
CK_RWCOHORT_NEUTRAL_INIT(COHORT_NAME cohort_name, LOCK *lock);
CK_RWCOHORT_RP_INIT(COHORT_NAME cohort_name, LOCK *lock, unsigned int wait_limit);
CK_RWCOHORT_WP_INIT(COHORT_NAME cohort_name, LOCK *lock, unsigned int wait_limit);
Library
Concurrency Kit (libck, -lck)
Overview
This macro initializes the lock instance pointed to by the lock argument. Until a lock instance is initialized using the CK_RWCOHORT_INIT macro, any operations involving it will have undefined behavior. Note that the wait_limit argument should only be used with reader-preference or writer-preference locks. For neutral locks, this argument should be excluded. If you are unsure of a value to use for the wait_limit argument, you should use CK_RWCOHORT_STRATEGY_DEFAULT_LOCAL_WAIT_LIMIT.
Releases
5 releases since Debian 8 (Jessie); the text changed 1 time.