# cmd_wait_for_flush

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-wait-for.c#L244
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd_wait_for_flush/

```c
void cmd_wait_for_flush(void)
```

## Called by

- [`server_loop`](/en/tmux/3.2a/reference/c-function-server-c-server_loop/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server.c#L285)
- [`server_send_exit`](/en/tmux/3.2a/reference/c-function-server-c-server_send_exit/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server.c#L302)

## Calls

- [`cmd_wait_for_remove`](/en/tmux/3.2a/reference/c-function-cmd-wait-for-c-cmd_wait_for_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-wait-for.c#L262)
- [`cmdq_continue`](/en/tmux/3.2a/reference/c-function-cmdq_continue/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-wait-for.c#L251)

## Referenced declarations

- [`wait_item.entry`](/en/tmux/3.2a/reference/c-struct-wait_item-entry/) (attribute)
- [`wait_item.item`](/en/tmux/3.2a/reference/c-struct-wait_item-item/) (attribute)
- [`wait_channel.locked`](/en/tmux/3.2a/reference/c-struct-wait_channel-locked/) (attribute)
- [`wait_channel.lockers`](/en/tmux/3.2a/reference/c-struct-wait_channel-lockers/) (attribute)
- [`wait_channel.waiters`](/en/tmux/3.2a/reference/c-struct-wait_channel-waiters/) (attribute)
- [`wait_channel.woken`](/en/tmux/3.2a/reference/c-struct-wait_channel-woken/) (attribute)
