14 #ifndef FOXXLL_IO_REQUEST_WITH_WAITERS_HEADER 15 #define FOXXLL_IO_REQUEST_WITH_WAITERS_HEADER 47 :
request(on_complete, file, buffer, offset, bytes,
op)
55 #endif // !FOXXLL_IO_REQUEST_WITH_WAITERS_HEADER size_t num_waiters()
returns number of waiters
uint64_t offset_type
type for offsets within a file
void notify_waiters() final
std::mutex waiters_mutex_
size_t size_type
type for block transfer sizes
bool add_waiter(onoff_switch *sw) final
void delete_waiter(onoff_switch *sw) final
std::set< onoff_switch * > waiters_
Request object encapsulating basic properties like file and offset.
offset_type offset() const
Request that is aware of threads waiting for it to complete.