> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sensor-bridge/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sensor-bridge/_mcp/server.

# hololink::emulation::ControlThread

***

## Constructors

### ControlThread \[#controlthread]

```cpp showLineNumbers={false}
hololink::emulation::ControlThread::ControlThread(
    HSBEmulatorCtxt *ctxt
)
```

### Destructor \[#destructor]

### \~ControlThread

```cpp showLineNumbers={false}
hololink::emulation::ControlThread::~ControlThread()
```

***

## Methods

### get\_metadata\_mutex \[#getmetadatamutex]

```cpp showLineNumbers={false}
std::mutex * hololink::emulation::ControlThread::get_metadata_mutex()
```

### loop \[#loop]

```cpp showLineNumbers={false}
void hololink::emulation::ControlThread::loop()
```

***

## Member variables

| Name             | Type                  | Description |
| ---------------- | --------------------- | ----------- |
| `ctxt_`          | `HSBEmulatorCtxt *`   |             |
| `thread_`        | `std::thread`         |             |
| `running`        | `std::atomic< bool >` |             |
| `next_sequence_` | `uint16_t`            |             |
| `metadata_mutex` | `std::mutex`          |             |