#include <CloseTask.hpp>
Public Member Functions | |
void | cancelRepeat () |
CloseTask (IOThread *ioThread, int fileDescriptor, bool writeEnabled, bool readEnabled) | |
Constructor. | |
Time | getScheduledTime () |
Scheduled time getter. | |
bool | hasRepeatScheduling () |
void | incrementScheduledTimeForRepeat () |
bool | isOkToRun () |
virtual void | run () |
Run the task. | |
virtual | ~CloseTask () |
Destructor. |
CloseTask class.
This is the task which closes a file descriptor
Definition at line 46 of file CloseTask.hpp.
CloseTask::CloseTask | ( | IOThread * | ioThread, | |
int | fileDescriptor, | |||
bool | writeEnabled, | |||
bool | readEnabled | |||
) |
Constructor.
ioThread | The IOThread instance which runs the tasks and holds the StreamHandler | |
fileDescriptor | The file descriptor to be closed | |
writeEnabled | Tells if there is a streamWriter to be erased | |
readEnabled | Tells if there is a streamReader to be erased |
Definition at line 35 of file CloseTask.cpp.
CloseTask::~CloseTask | ( | ) | [virtual] |
Destructor.
Definition at line 30 of file CloseTask.cpp.
Time Task::getScheduledTime | ( | ) | [inherited] |
void CloseTask::run | ( | ) | [virtual] |
Run the task.
Close the file descriptor
Reimplemented from mermaid::support::activeobject::Task.
Definition at line 39 of file CloseTask.cpp.