Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::cancellation_detail::Locked_Observer Struct Reference

A condition variable registered with the mutex of its waiters. More...

#include <thread_pool.H>

Collaboration diagram for Aleph::cancellation_detail::Locked_Observer:
[legend]

Public Attributes

std::condition_variable * cv
 Condition variable to notify.
 
std::mutex * mutex
 Mutex that its waiters hold.
 
size_t busy = 0
 Cancellations notifying it right now.
 
bool removed = false
 Whether its registration has ended.
 

Detailed Description

A condition variable registered with the mutex of its waiters.

Made by CancellationToken::notify_on_cancel(cv, mutex).

Definition at line 198 of file thread_pool.H.

Member Data Documentation

◆ busy

size_t Aleph::cancellation_detail::Locked_Observer::busy = 0

Cancellations notifying it right now.

Definition at line 202 of file thread_pool.H.

◆ cv

std::condition_variable* Aleph::cancellation_detail::Locked_Observer::cv

Condition variable to notify.

Definition at line 200 of file thread_pool.H.

◆ mutex

std::mutex* Aleph::cancellation_detail::Locked_Observer::mutex

Mutex that its waiters hold.

Definition at line 201 of file thread_pool.H.

◆ removed

bool Aleph::cancellation_detail::Locked_Observer::removed = false

Whether its registration has ended.

Definition at line 203 of file thread_pool.H.


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