Stxxl
1.4.0
|
Encapsulates disk queues. More...
#include <disk_queues.h>
Public Member Functions | |
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. | |
~disk_queues () | |
void | set_priority_op (request_queue::priority_op op) |
Changes requests priorities. | |
Protected Member Functions | |
disk_queues () | |
Protected Attributes | |
request_queue_map | queues |
Private Types | |
typedef request_queue_impl_qwqr | request_queue_type |
typedef stxxl::int64 | DISKID |
typedef std::map< DISKID, request_queue_type * > | request_queue_map |
typedef stxxl::int64 stxxl::disk_queues::DISKID [private] |
Definition at line 42 of file disk_queues.h.
typedef std::map<DISKID, request_queue_type *> stxxl::disk_queues::request_queue_map [private] |
Definition at line 43 of file disk_queues.h.
typedef request_queue_impl_qwqr stxxl::disk_queues::request_queue_type [private] |
Definition at line 40 of file disk_queues.h.
stxxl::disk_queues::disk_queues | ( | ) | [inline, protected] |
Definition at line 47 of file disk_queues.h.
stxxl::disk_queues::~disk_queues | ( | ) | [inline] |
Definition at line 85 of file disk_queues.h.
void stxxl::disk_queues::add_request | ( | request_ptr & | req, |
DISKID | disk | ||
) | [inline] |
Definition at line 53 of file disk_queues.h.
bool stxxl::disk_queues::cancel_request | ( | request_ptr & | req, |
DISKID | disk | ||
) | [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 74 of file disk_queues.h.
void stxxl::disk_queues::set_priority_op | ( | request_queue::priority_op | op | ) | [inline] |
Changes requests priorities.
op | one of:
|
Definition at line 97 of file disk_queues.h.
References set_priority_op().
Referenced by set_priority_op().
request_queue_map stxxl::disk_queues::queues [protected] |
Definition at line 46 of file disk_queues.h.