1CK_COHORT_LOCK(3)        BSD Library Functions Manual        CK_COHORT_LOCK(3)
2

NAME

4     CK_COHORT_LOCK — acquire cohort lock
5

LIBRARY

7     Concurrency Kit (libck, -lck)
8

SYNOPSIS

10     #include <ck_cohort.h>
11
12     CK_COHORT_LOCK(COHORT_NAME cohort_name, COHORT *cohort,
13         void *global_context, void *local_context);
14

DESCRIPTION

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

SEE ALSO

24     ck_cohort(3), CK_COHORT_PROTOTYPE(3), CK_COHORT_TRYLOCK_PROTOTYPE(3),
25     CK_COHORT_INSTANCE(3), CK_COHORT_INITIALIZER(3), CK_COHORT_INIT(3),
26     CK_COHORT_UNLOCK(3), CK_COHORT_LOCKED(3), CK_COHORT_TRYLOCK(3),
27
28     Additional information available at http://concurrencykit.org/
29
30                              February 24, 2013.
Impressum