#include <WriteTask.hpp>
Public Member Functions | |
void | cancelRepeat () |
Time | getScheduledTime () |
Scheduled time getter. | |
bool | hasRepeatScheduling () |
void | incrementScheduledTimeForRepeat () |
bool | isOkToRun () |
virtual void | run () |
Run the task. | |
WriteTask (IOThread *ioThread, int fileDescriptor, size_t bytesToWrite, const char *const data, shared_ptr< StreamOperationHandlerMethodBase > streamOperationHandlerWrite) | |
Constructor. | |
virtual | ~WriteTask () |
Destructor. |
WriteTask class.
This is the task which does a write operation in a specific StreamWriter
Definition at line 46 of file WriteTask.hpp.
WriteTask::WriteTask | ( | IOThread * | ioThread, | |
int | fileDescriptor, | |||
size_t | bytesToWrite, | |||
const char *const | data, | |||
shared_ptr< StreamOperationHandlerMethodBase > | streamOperationHandlerWrite | |||
) |
Constructor.
ioThread | The IOThread instance which runs the tasks and holds the StreamHandler | |
fileDescriptor | The file descriptor on which the write will be done | |
bytesToWrite | The number of bytes to write | |
data | The data which will be written |
Definition at line 37 of file WriteTask.cpp.
WriteTask::~WriteTask | ( | ) | [virtual] |
Destructor.
Definition at line 32 of file WriteTask.cpp.
Time Task::getScheduledTime | ( | ) | [inherited] |
void WriteTask::run | ( | ) | [virtual] |
Run the task.
Writes data to a file descriptor
Reimplemented from mermaid::support::activeobject::Task.
Definition at line 43 of file WriteTask.cpp.