Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
Scheduler.h File Reference
#include <setjmp.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for Scheduler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SchedulerClass
 
struct  SchedulerClass::task_t
 

Macros

#define await(cond)   while (!(cond)) Scheduler.yield()
 

Variables

SchedulerClass Scheduler
 

Detailed Description

Version
1.6

License

Copyright (C) 2015-2017, Mikael Patel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

Definition in file Scheduler.h.

Macro Definition Documentation

#define await (   cond)    while (!(cond)) Scheduler.yield()

Syntactic sugar for scheduler based busy-wait for condition; yield until condition is valid. May require volatile condition variable(s).

Parameters
[in]condcondition to await.

Definition at line 162 of file Scheduler.h.

Variable Documentation

SchedulerClass Scheduler

Scheduler single-ton.

Definition at line 53 of file Scheduler.cpp.