STXXL
1.4-dev
|
Public Member Functions | |
~disk_queues () | |
void | add_request (request_ptr &req, DISKID disk) |
bool | cancel_request (request_ptr &req, DISKID disk) |
Cancel a request. The specified request is canceled unless already being processed. However, cancelation cannot be guaranteed. Cancelled requests must still be waited for in order to ensure correct operation. More... | |
request_queue * | get_queue (DISKID disk) |
void | set_priority_op (request_queue::priority_op op) |
Changes requests priorities. More... | |
Protected Member Functions | |
disk_queues () | |
Protected Attributes | |
request_queue_map | queues |
Private Types | |
typedef stxxl::int64 | DISKID |
typedef std::map< DISKID, request_queue * > | request_queue_map |
Additional Inherited Members | |
Static Public Member Functions inherited from stxxl::singleton< disk_queues > | |
static instance_pointer | get_instance () |
|
private |
Definition at line 41 of file disk_queues.h.
|
private |
Definition at line 42 of file disk_queues.h.
|
inlineprotected |
Definition at line 46 of file disk_queues.h.
References stxxl::singleton< stats >::get_instance().
|
inline |
Definition at line 104 of file disk_queues.h.
|
inline |
Definition at line 52 of file disk_queues.h.
References stxxl::request_queue::add_request(), stxxl::counting_ptr< Type >::get(), and stxxl::request::get_file().
|
inline |
Cancel a request. The specified request is canceled unless already being processed. However, cancelation cannot be guaranteed. Cancelled requests must still be waited for in order to ensure correct operation.
req | request to cancel |
disk | disk number for disk that req was scheduled on |
true
iff the request was canceled successfully Definition at line 85 of file disk_queues.h.
|
inline |
Definition at line 96 of file disk_queues.h.
|
inline |
Changes requests priorities.
op | one of:
|
Definition at line 116 of file disk_queues.h.
|
protected |
Definition at line 45 of file disk_queues.h.