---
name: "cWait"
section: "3"
platform: "linux"
package: "clearsilver-dev"
version: "0.10.5-6+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cWait"
---

# cWait(3)

wait a condition variable signal.

## NAME

cWait  - wait a condition variable signal.

## SYNOPSIS

```
#include <util/ulocks.h>
```

```
NEOERR *cWait(pthread_cond_t *cond, pthread_mutex_t *mutex);
```

## ARGUMENTS

cond - condition variable to wait on.\
 mutex - locked mutex to protect \<cond\>.

## DESCRIPTION

Waits for a signal on condition variable \<cond\>. The mutex \<mutex\> must be locked by the thread.

MT-Level: Safe.

## RETURN VALUE

None.

## SEE ALSO

[**mCreate**(3)](/mCreate/3.md), [**fCreate**(3)](/fCreate/3.md), [**mUnlock**(3)](/mUnlock/3.md), [**fUnlock**(3)](/fUnlock/3.md), [**cBroadcast**(3)](/cBroadcast/3.md), [**cSignal**(3)](/cSignal/3.md), [**fFind**(3)](/fFind/3.md), [**cDestroy**(3)](/cDestroy/3.md), [**cCreate**(3)](/cCreate/3.md), [**mDestroy**(3)](/mDestroy/3.md), [**cWait**(3)](/cWait/3.md), [**fLock**(3)](/fLock/3.md), [**fDestroy**(3)](/fDestroy/3.md), **mLock**
