Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
SchedulerBenchmarkSemaphore.ino File Reference
#include <Scheduler.h>
#include <Scheduler/Semaphore.h>
Include dependency graph for SchedulerBenchmarkSemaphore.ino:

Go to the source code of this file.

Functions

void setup ()
 
void loop ()
 
void producer ()
 
void consumer ()
 

Variables

Semaphore semaphore (0)
 
unsigned long count = 0
 

Detailed Description

Version
1.0

License

Copyright (C) 2015-2016, 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.

Description

Benchmark Scheduler Semaphore.

Arduino 1.6.7, Arduino Pro-Mini

Semaphore wait/signal per seconds. Arduino Pro-Mini 26337 (37.97 us) Arduino Mega 2560 23289 (42.94 us) Arduino Due 196770 (5.08 us)

Definition in file SchedulerBenchmarkSemaphore.ino.

Function Documentation

void consumer ( )

Definition at line 67 of file SchedulerBenchmarkSemaphore.ino.

void loop ( )

Definition at line 50 of file SchedulerBenchmarkSemaphore.ino.

void producer ( )

Definition at line 62 of file SchedulerBenchmarkSemaphore.ino.

void setup ( )

Definition at line 39 of file SchedulerBenchmarkSemaphore.ino.

Variable Documentation

unsigned long count = 0

Definition at line 37 of file SchedulerBenchmarkSemaphore.ino.

Semaphore semaphore(0)