summaryrefslogtreecommitdiff
path: root/docs/reference/src/thr/nng_mtx_free.md
blob: ac759331ac68ee2105e0ca56728e6a2a90c7bc60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# nng_mtx_free

## NAME

nng_mtx_free --- free mutex

## SYNOPSIS

```c
#include <nng/nng.h>
#include <nng/supplemental/util/platform.h>

void nng_mtx_free(nng_mtx *mtx);
```

## DESCRIPTION

The `nng_mtx_free()` function frees the mutex _mtx_.
The mutex must not be locked when this function is called.

## SEE ALSO

[nng_mtx_alloc](nng_mtx_alloc)

{{#include ../refs.md}}