CK_RWCOHORT_INIT (3) - Linux Man Pages
CK_RWCOHORT_INIT: initialize instance of a cohort-based reader-writer lock type
NAMECK_RWCOHORT_INIT - initialize instance of a cohort-based reader-writer lock type
LIBRARYConcurrency Kit (libck, -lck)
SYNOPSISIn ck_rwcohort.h Fn CK_RWCOHORT_NEUTRAL_INIT COHORT_NAME cohort_name LOCK *lock Fn CK_RWCOHORT_RP_INIT COHORT_NAME cohort_name LOCK *lock unsigned int wait_limit Fn CK_RWCOHORT_WP_INIT COHORT_NAME cohort_name LOCK *lock unsigned int wait_limit
DESCRIPTIONThis macro initializes the lock instance pointed to by the Fa 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 Fa 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 Fa wait_limit argument, you should use CK_RWCOHORT_STRATEGY_DEFAULT_LOCAL_WAIT_LIMIT.
SEE ALSOck_rwcohort3, CK_RWCOHORT_PROTOTYPE3, CK_RWCOHORT_TRYLOCK_PROTOTYPE3, CK_RWCOHORT_INSTANCE3, CK_RWCOHORT_INITIALIZER3, CK_RWCOHORT_LOCK3, CK_RWCOHORT_UNLOCK3, CK_RWCOHORT_LOCKED3, CK_RWCOHORT_TRYLOCK3,
Additional information available at http://concurrencykit.org/