14 #ifndef STXXL_IO__REQUEST_WITH_WAITERS_H_
15 #define STXXL_IO__REQUEST_WITH_WAITERS_H_
19 #include <stxxl/bits/common/mutex.h>
20 #include <stxxl/bits/common/switch.h>
21 #include <stxxl/bits/io/request_interface.h>
24 __STXXL_BEGIN_NAMESPACE
33 std::set<onoff_switch *> waiters;
36 bool add_waiter(onoff_switch * sw);
37 void delete_waiter(onoff_switch * sw);
38 void notify_waiters();
48 #endif // !STXXL_IO__REQUEST_WITH_WAITERS_H_
Request that is aware of threads waiting for it to complete.
Definition: request_with_waiters.h:30
Functional interface of a request.
Definition: request_interface.h:37