MPD: notify Struct Reference

MPD 0.20.15

Public Member Functions | Data Fields
notify Struct Reference

`#include <notify.hxx>`

Collaboration diagram for notify:
[legend]

## Public Member Functions
void | Wait ()
| Wait for a notification. More...
void | Signal ()
| Notify the thread. More...
void | Clear ()
| Clears a pending notification. More...

## Data Fields
Mutex | mutex
Cond | cond
bool | pending = false

## Detailed Description

Definition at line 26 of file notify.hxx.

## Member Function Documentation

## ◆ Clear()

void notify::Clear | ( |  | ) |

Clears a pending notification.

## ◆ Signal()

void notify::Signal | ( |  | ) |

Notify the thread.

This function never blocks.

## ◆ Wait()

void notify::Wait | ( |  | ) |

Wait for a notification.

Return immediately if we have already been notified since we last returned from notify_wait().

## Field Documentation

## ◆ cond

Cond notify::cond

Definition at line 28 of file notify.hxx.

## ◆ mutex

Mutex notify::mutex

Definition at line 27 of file notify.hxx.

## ◆ pending

bool notify::pending = false

Definition at line 29 of file notify.hxx.

The documentation for this struct was generated from the following file:

- notify.hxx