Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 1011 vs 1012 for /trunk/Source Code/Platform/Threading/Headers/Task.h

Diff revisions: vs.
  @@ -146,10 +146,11 @@
146 146 {
147 147 }
148 148
149 - inline void startTask(Task::TaskPriority prio = Task::TaskPriority::DONT_CARE,
150 - U32 taskFlags = 0) {
149 + inline TaskHandle& startTask(Task::TaskPriority prio = Task::TaskPriority::DONT_CARE,
150 + U32 taskFlags = 0) {
151 151 assert(_task != nullptr);
152 152 _task->startTask(prio, taskFlags);
153 + return *this;
153 154 }
154 155
155 156 inline Task* addChildTask(const TaskHandle& taskHandle) {
  @@ -158,10 +159,11 @@
158 159 return _task->addChildTask(task);
159 160 }
160 161
161 - inline void wait() {
162 + inline TaskHandle& wait() {
162 163 if (_task != nullptr) {
163 164 _task->wait();
164 165 }
166 + return *this;
165 167 }
166 168
167 169 Task* _task;