---
name: "CK_COHORT_UNLOCK"
section: "3"
platform: "linux"
package: "libck-dev"
version: "0.7.2-6"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CK_COHORT_UNLOCK"
---

# CK\_COHORT\_UNLOCK(3)

release cohort lock

## NAME

**CK\_COHORT\_UNLOCK** – release cohort lock

## LIBRARY

Concurrency Kit (libck, -lck)

## SYNOPSIS

**#include \<ck\_cohort.h\>**

**CK\_COHORT\_UNLOCK**(*COHORT\_NAME cohort\_name*, *COHORT \*cohort*, *void \*global\_context*, *void \*local\_context*);

## DESCRIPTION

This call instructs *cohort* to relinquish its local lock and potentially its global lock as well. *global\_context* will be passed as the second argument to the function that was provided as the *global\_lock\_method* argument to CK\_COHORT\_PROTOTYPE if that method is called, and *local\_context* will be passed to the function specified by *local\_lock\_method*

## SEE ALSO

[ck\_cohort(3)](/ck_cohort/3.md), [CK\_COHORT\_PROTOTYPE(3)](/CK_COHORT_PROTOTYPE/3.md), [CK\_COHORT\_TRYLOCK\_PROTOTYPE(3)](/CK_COHORT_TRYLOCK_PROTOTYPE/3.md), [CK\_COHORT\_INSTANCE(3)](/CK_COHORT_INSTANCE/3.md), CK\_COHORT\_INITIALIZER(3), [CK\_COHORT\_INIT(3)](/CK_COHORT_INIT/3.md), [CK\_COHORT\_LOCK(3)](/CK_COHORT_LOCK/3.md), CK\_COHORT\_LOCKED(3), [CK\_COHORT\_TRYLOCK(3)](/CK_COHORT_TRYLOCK/3.md),

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