wavelength 1.0.0
Loading...
Searching...
No Matches
waitfortasktask.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/task.h"
5
11class WaitForTaskTask : public Task {
12public:
19 ~WaitForTaskTask() override = default;
20
31 WaitForTaskTask(const char *pszName, TaskDoneNotifier *pNotifier);
32
33protected:
40 void OnStart() override;
41
42private:
43 TaskDoneNotifier *mNotifier;
44 const char *mName;
45};
Object a task can ask to report when a named piece of work is done.
Definition taskdonenotifier.h:10
Task()
Construct an idle task.
Definition task.h:24
~WaitForTaskTask() override=default
Destroy the object.
WaitForTaskTask(const char *pszName, TaskDoneNotifier *pNotifier)
Construct a task that waits for the named work.
void OnStart() override
Arrange for the notifier to report the work to this task.