Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types
stxxl::disk_queues Class Reference

Encapsulates disk queues. More...

#include <disk_queues.h>

List of all members.

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

Detailed Description

Encapsulates disk queues.

Remarks:
is a singleton

Definition at line 35 of file disk_queues.h.


Member Typedef Documentation

Definition at line 42 of file disk_queues.h.

Definition at line 43 of file disk_queues.h.

Definition at line 40 of file disk_queues.h.


Constructor & Destructor Documentation

stxxl::disk_queues::disk_queues ( ) [inline, protected]

Definition at line 47 of file disk_queues.h.

Definition at line 85 of file disk_queues.h.


Member Function Documentation

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.

Parameters:
reqrequest to cancel
diskdisk number for disk that req was scheduled on
Returns:
true iff the request was canceled successfully

Definition at line 74 of file disk_queues.h.

Changes requests priorities.

Parameters:
opone 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

Definition at line 97 of file disk_queues.h.

References set_priority_op().

Referenced by set_priority_op().


Member Data Documentation

Definition at line 46 of file disk_queues.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines