We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89bcd1f commit 41fba08Copy full SHA for 41fba08
Scheduler.h
@@ -159,6 +159,6 @@ extern SchedulerClass Scheduler;
159
* variable(s).
160
* @param[in] cond condition to await.
161
*/
162
-#define await(cond) while (!(cond)) yield()
+#define await(cond) while (!(cond)) Scheduler.yield()
163
164
#endif
Scheduler/Semaphore.h
@@ -46,7 +46,7 @@ class Semaphore {
46
void signal(unsigned int count = 1)
47
{
48
m_count += count;
49
- yield();
+ Scheduler.yield();
50
}
51
52
protected:
0 commit comments