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

NAME

4     CK_RWCOHORT_PROTOTYPE — define reader-writer cohort-based lock using the
5     specified cohort type
6

LIBRARY

8     Concurrency Kit (libck, -lck)
9

SYNOPSIS

11     #include <ck_rwcohort.h>
12
13     CK_RWCOHORT_NEUTRAL_PROTOTYPE(COHORT_NAME cohort_name);
14
15     CK_RWCOHORT_RP_PROTOTYPE(COHORT_NAME cohort_name);
16
17     CK_RWCOHORT_WP_PROTOTYPE(COHORT_NAME cohort_name);
18

DESCRIPTION

20     The ck_rwcohort.h header file does not define any cohort types.  Instead,
21     the user must use the CK_RWCOHORT_PROTOTYPE macro to define any types
22     they want to use.  This macro takes a single argument which corresponds
23     to the type of the cohort lock that the reader-writer lock should use.  A
24     cohort type must have already been defined with that name using the
25     CK_COHORT_PROTOTYPE(3) or CK_COHORT_TRYLOCK_PROTOTYPE(3) macros.
26
27     Instances of the defined lock type can be declared as:
28         CK_RWCOHORT_INSTANCE(cohort_name) lock;
29

SEE ALSO

31     ck_rwcohort(3), CK_COHORT_PROTOTYPE(3), CK_COHORT_TRYLOCK_PROTOTYPE(3),
32     CK_RWCOHORT_INSTANCE(3), CK_RWCOHORT_INITIALIZER(3), CK_RWCOHORT_INIT(3),
33     CK_RWCOHORT_READ_LOCK(3), CK_RWCOHORT_READ_UNLOCK(3),
34     CK_RWCOHORT_WRITE_LOCK(3), CK_RWCOHORT_WRITE_UNLOCK(3),
35
36     Additional information available at http://concurrencykit.org/
37
38                              February 24, 2013.
Impressum