Stxxl  1.2.1
Public Member Functions
ufs_request_base Class Reference

Base for UNIX file system implementations. More...

#include <ufs_file.h>

Inheritance diagram for ufs_request_base:
Inheritance graph
[legend]
Collaboration diagram for ufs_request_base:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void wait ()
 Suspends calling thread until completion of the request.
bool poll ()
 Polls the status of the request.
const char * io_type ()
 Identifies the type of request I/O implementation.
- Public Member Functions inherited from request
void error_occured (const char *msg)
 Inform the request object that an error occurred during the I/O execution.
void error_occured (const std::string &msg)
 Inform the request object that an error occurred during the I/O execution.
void check_errors () throw (stxxl::io_error)
 Rises an exception if there were error with the I/O.

Detailed Description

Base for UNIX file system implementations.


Member Function Documentation

const char * ufs_request_base::io_type ( )
virtual

Identifies the type of request I/O implementation.

Returns:
pointer to null terminated string of characters, containing the name of I/O implementation

Reimplemented from request.

Reimplemented in sim_disk_request, mmap_request, and syscall_request.

bool ufs_request_base::poll ( )
virtual

Polls the status of the request.

Returns:
true if request is completed, otherwise false

Implements request.

References request::check_errors(), and wait().

void ufs_request_base::wait ( )
virtual

Suspends calling thread until completion of the request.

Implements request.

References request::check_errors().

Referenced by poll().


The documentation for this class was generated from the following files: