Skip to content

Commit 41fba08

Browse files
committed
Explicitly call yield() of singleton instance
1 parent 89bcd1f commit 41fba08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Scheduler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ extern SchedulerClass Scheduler;
159159
* variable(s).
160160
* @param[in] cond condition to await.
161161
*/
162-
#define await(cond) while (!(cond)) yield()
162+
#define await(cond) while (!(cond)) Scheduler.yield()
163163

164164
#endif

Scheduler/Semaphore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Semaphore {
4646
void signal(unsigned int count = 1)
4747
{
4848
m_count += count;
49-
yield();
49+
Scheduler.yield();
5050
}
5151

5252
protected:

0 commit comments

Comments
 (0)