MPD: IOThread.hxx File Reference

MPD 0.20.15

Functions
IOThread.hxx File Reference
`#include "Compiler.h"`
Include dependency graph for IOThread.hxx:

Go to the source code of this file.

## Functions
void | io_thread_init ()
void | io_thread_start ()
void | io_thread_run ()
| Run the I/O event loop synchronously in the current thread. More...
void | io_thread_quit ()
| Ask the I/O thread to quit, but does not wait for it. More...
void | io_thread_deinit ()
gcc_const EventLoop & | io_thread_get () noexcept
gcc_pure bool | io_thread_inside () noexcept
| Is the current thread the I/O thread? More...

## Function Documentation

## ◆ io_thread_deinit()

void io_thread_deinit | ( |  | ) |

## ◆ io_thread_get()

gcc_const EventLoop& io_thread_get | ( |  | ) |
| noexcept

## ◆ io_thread_init()

void io_thread_init | ( |  | ) |

## ◆ io_thread_inside()

gcc_pure bool io_thread_inside | ( |  | ) |
| noexcept

Is the current thread the I/O thread?

## ◆ io_thread_quit()

void io_thread_quit | ( |  | ) |

Ask the I/O thread to quit, but does not wait for it.

Usually, you don't need to call this function, because io_thread_deinit() includes this.

## ◆ io_thread_run()

void io_thread_run | ( |  | ) |

Run the I/O event loop synchronously in the current thread.

This can be called instead of io_thread_start(). For testing purposes only.

## ◆ io_thread_start()

void io_thread_start | ( |  | ) |