Grappa  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Grappa::IODescriptor Struct Reference

Basically a wrapper around a POSIX "struct aiocb" with info for resuming the calling Grappa thread. More...

#include <FileIO.hpp>

Public Member Functions

 IODescriptor (int file_desc=0, size_t file_offset=0, void *buffer=NULL, size_t bufsize=0)
 
void file (int file_desc)
 
void buf (void *buf, size_t nbytes)
 
volatile void * buf ()
 
size_t nbytes ()
 
template<typename T >
size_t nelems ()
 
void offset (size_t of)
 
struct aiocb * desc_ptr ()
 
void block_on_read ()
 
void handle_completion ()
 

Public Attributes

bool complete
 
ConditionVariable cv
 
struct aiocb ac
 
IODescriptornextCompleted
 

Detailed Description

Basically a wrapper around a POSIX "struct aiocb" with info for resuming the calling Grappa thread.

Definition at line 121 of file FileIO.hpp.


The documentation for this struct was generated from the following file: