# control_all_done

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L585
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-control_all_done/

```c
int control_all_done(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`server_client_check_exit`](/en/tmux/latest/reference/c-function-server-client-c-server_client_check_exit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1923)

## Referenced declarations

- [`control_state.all_blocks`](/en/tmux/latest/reference/c-struct-control_state-all_blocks/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`client.control_state`](/en/tmux/latest/reference/c-struct-client-control_state/) (attribute)
- [`control_state.write_event`](/en/tmux/latest/reference/c-struct-control_state-write_event/) (attribute)
