Encapsulates disk queues.
More...
#include <disk_queues.h>
Inherits singleton< 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...
|
|
void | set_priority_op (request_queue::priority_op op) |
| Changes requests priorities. More...
|
|
Encapsulates disk queues.
bool 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.
- Parameters
-
req | request to cancel |
disk | disk number for disk that req was scheduled on |
- Returns
true
iff the request was canceled successfully
void disk_queues::set_priority_op |
( |
request_queue::priority_op |
op | ) |
|
|
inline |
Changes requests priorities.
- Parameters
-
op | one of:
- READ, read requests are served before write requests within a disk queue
- WRITE, write requests are served before read requests within a disk queue
- NONE, read and write requests are served by turns, alternately
|
The documentation for this class was generated from the following file: