Request that is aware of threads waiting for it to complete.
Definition at line 30 of file request_with_waiters.h.
|
| | request_with_waiters (const completion_handler &on_cmpl, file *f, void *buf, offset_type off, size_type b, request_type t) |
| |
| | request (const completion_handler &on_compl, file *file, void *buffer, offset_type offset, size_type bytes, request_type type) |
| |
| virtual | ~request () noexcept(false) |
| |
| void | check_alignment () const |
| |
| void | check_errors () |
| | Rises an exception if there were error with the I/O. More...
|
| |
| void | error_occured (const char *msg) |
| | Inform the request object that an error occurred during the I/O execution. More...
|
| |
| void | error_occured (const std::string &msg) |
| | Inform the request object that an error occurred during the I/O execution. More...
|
| |
| void * | get_buffer () const |
| |
| file * | get_file () const |
| |
| offset_type | get_offset () const |
| |
| size_type | get_size () const |
| |
| request_type | get_type () const |
| |
| virtual const char * | io_type () const |
| | Identifies the type of I/O implementation. More...
|
| |
| std::ostream & | print (std::ostream &out) const |
| | Dumps properties of a request. More...
|
| |
| virtual | ~request_interface () noexcept(false) |
| |
| virtual bool | cancel ()=0 |
| | Cancel a request. More...
|
| |
| virtual bool | poll ()=0 |
| | Polls the status of the request. More...
|
| |
| virtual void | wait (bool measure_time=true)=0 |
| | Suspends calling thread until completion of the request. More...
|
| |
| | atomic_counted_object () |
| | new objects have zero reference count More...
|
| |
| | atomic_counted_object (const atomic_counted_object &) |
| | coping still creates a new object with zero reference count More...
|
| |
| | ~atomic_counted_object () |
| |
| bool | dec_reference () const |
| | Call whenever resetting (i.e. overwriting) a pointer to the object. IMPORTANT: In case of self-assignment, call AFTER inc_reference(). More...
|
| |
| unsigned_type | get_reference_count () const |
| | Return the number of references to this object (for debugging) More...
|
| |
| void | inc_reference () const |
| | Call whenever setting a pointer to the object. More...
|
| |
| atomic_counted_object & | operator= (const atomic_counted_object &) |
| | assignment operator, leaves pointers unchanged More...
|
| |
| bool | unique () const |
| | Test if the counted_object is referenced by only one counting_ptr. More...
|
| |