CK_RWCOHORT_PROTOTYPE (3) - Linux Manuals

CK_RWCOHORT_PROTOTYPE: define reader-writer cohort-based lock using the specified cohort type

NAME

CK_RWCOHORT_PROTOTYPE - define reader-writer cohort-based lock using the specified cohort type

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_rwcohort.h Fn CK_RWCOHORT_NEUTRAL_PROTOTYPE COHORT_NAME cohort_name Fn CK_RWCOHORT_RP_PROTOTYPE COHORT_NAME cohort_name Fn CK_RWCOHORT_WP_PROTOTYPE COHORT_NAME cohort_name

DESCRIPTION

The ck_rwcohort.h header file does not define any cohort types. Instead, the user must use the CK_RWCOHORT_PROTOTYPE macro to define any types they want to use. This macro takes a single argument which corresponds to the type of the cohort lock that the reader-writer lock should use. A cohort type must have already been defined with that name using the CK_COHORT_PROTOTYPE3 or CK_COHORT_TRYLOCK_PROTOTYPE3 macros.

Instances of the defined lock type can be declared as:

 CK_RWCOHORT_INSTANCE(cohort_name) lock;

SEE ALSO

ck_rwcohort3, CK_COHORT_PROTOTYPE3, CK_COHORT_TRYLOCK_PROTOTYPE3, CK_RWCOHORT_INSTANCE3, CK_RWCOHORT_INITIALIZER3, CK_RWCOHORT_INIT3, CK_RWCOHORT_READ_LOCK3, CK_RWCOHORT_READ_UNLOCK3, CK_RWCOHORT_WRITE_LOCK3, CK_RWCOHORT_WRITE_UNLOCK3,

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