Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Protected Member Functions | Private Attributes
stxxl::request_with_waiters Class Reference

Request that is aware of threads waiting for it to complete. More...

#include <request_with_waiters.h>

Inheritance diagram for stxxl::request_with_waiters:
Inheritance graph
[legend]
Collaboration diagram for stxxl::request_with_waiters:
Collaboration graph
[legend]

List of all members.

Protected Member Functions

bool add_waiter (onoff_switch *sw)
void delete_waiter (onoff_switch *sw)
void notify_waiters ()

Private Attributes

mutex waiters_mutex
std::set< onoff_switch * > waiters

Detailed Description

Request that is aware of threads waiting for it to complete.

Definition at line 30 of file request_with_waiters.h.


Member Function Documentation

bool stxxl::request_with_waiters::add_waiter ( onoff_switch sw) [protected, virtual]

Implements stxxl::request_interface.

Definition at line 21 of file request_with_waiters.cpp.

void stxxl::request_with_waiters::delete_waiter ( onoff_switch sw) [protected, virtual]

Implements stxxl::request_interface.

Definition at line 39 of file request_with_waiters.cpp.

void stxxl::request_with_waiters::notify_waiters ( ) [protected, virtual]

Implements stxxl::request_interface.

Definition at line 45 of file request_with_waiters.cpp.

References stxxl::for_each().


Member Data Documentation

Definition at line 33 of file request_with_waiters.h.

Definition at line 32 of file request_with_waiters.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines