SysTutorials

Linux Manual Pages › Section 3

ck_cohort_lock(3)

CK_COHORT_LOCK – acquire cohort lock

Library

Concurrency Kit (libck, -lck)

Synopsis

In ck_cohort.h Fn CK_COHORT_LOCK COHORT_NAME cohort_name COHORT *cohort void *global_context void *local_context

Description

This call attempts to acquire both the local and global (if necessary) locks from Fa cohort . The call will block until both locks have been acquired. Fa global_context will be passed as the second argument to the function that was provided as the Fa global_lock_method argument to CK_COHORT_PROTOTYPE if that method is called, and Fa local_context will be passed to the function specified by Fa local_lock_method

See Also

ck_cohort3, CK_COHORT_PROTOTYPE3, CK_COHORT_TRYLOCK_PROTOTYPE3, CK_COHORT_INSTANCE3, CK_COHORT_INITIALIZER3, CK_COHORT_INIT3, CK_COHORT_UNLOCK3, CK_COHORT_LOCKED3, CK_COHORT_TRYLOCK3,

Additional information available at http://concurrencykit.org/