XrdCl::TaskManager Class Reference
#include <XrdClTaskManager.hh>
List of all members.
Detailed Description
Run short tasks at a given time in the future
The task manager just runs one extra thread so the execution of one tasks may interfere with the execution of another
Member Typedef Documentation
Constructor & Destructor Documentation
XrdCl::TaskManager::TaskManager |
( |
|
) |
|
XrdCl::TaskManager::~TaskManager |
( |
|
) |
|
Member Function Documentation
void XrdCl::TaskManager::RegisterTask |
( |
Task * |
task, |
|
|
time_t |
time, |
|
|
bool |
own = true | |
|
) |
| | |
Run the given task at the given time.
- Parameters:
-
| task | task to be run |
| time | time at which the task should be run |
| own | determines whether the task object should be destroyed when no longer needed |
void XrdCl::TaskManager::RunTasks |
( |
|
) |
|
Run the tasks - this loops infinitely.
bool XrdCl::TaskManager::Start |
( |
|
) |
|
bool XrdCl::TaskManager::Stop |
( |
|
) |
|
Stop the manager
Will wait until the currently running task completes
void XrdCl::TaskManager::UnregisterTask |
( |
Task * |
task |
) |
|
Remove a task, the unregistration process is asynchronous and may be performed at any point in the future, the function just queues the request. Unregistered task gets destroyed if it was owned by the task manager.
Member Data Documentation
The documentation for this class was generated from the following file: