STXXL
1.4.0
|
Request that is aware of threads waiting for it to complete.
Definition at line 31 of file request_with_waiters.h.
Protected Member Functions | |
bool | add_waiter (onoff_switch *sw) |
void | delete_waiter (onoff_switch *sw) |
void | notify_waiters () |
Protected Member Functions inherited from stxxl::request_interface | |
virtual void | completed ()=0 |
Private Attributes | |
std::set< onoff_switch * > | waiters |
mutex | waiters_mutex |
Additional Inherited Members | |
Public Types inherited from stxxl::request_interface | |
typedef stxxl::external_size_type | offset_type |
enum | request_type { READ, WRITE } |
typedef stxxl::internal_size_type | size_type |
Public Member Functions inherited from stxxl::request_interface | |
virtual | ~request_interface () |
virtual bool | cancel ()=0 |
Cancel a request. More... | |
virtual const char * | io_type () const =0 |
Identifies the type of I/O implementation. More... | |
virtual bool | poll ()=0 |
Polls the status of the request. More... | |
virtual std::ostream & | print (std::ostream &out) const =0 |
Dumps properties of a request. More... | |
virtual void | serve ()=0 |
virtual void | wait (bool measure_time=true)=0 |
Suspends calling thread until completion of the request. More... | |
|
protectedvirtual |
Implements stxxl::request_interface.
Definition at line 25 of file request_with_waiters.cpp.
|
protectedvirtual |
Implements stxxl::request_interface.
Definition at line 43 of file request_with_waiters.cpp.
|
protectedvirtual |
Implements stxxl::request_interface.
Definition at line 49 of file request_with_waiters.cpp.
References _STXXL_FORCE_SEQUENTIAL, and stxxl::for_each().
|
private |
Definition at line 34 of file request_with_waiters.h.
|
private |
Definition at line 33 of file request_with_waiters.h.