Projekte
workwind
Multitasking optimiert
condition.h
Projekte
Forum
Doku
Öffentliche Projekte
Startseite
Beispielprogramme
Projekte von anderen
Welcome
Username
Passwort
Eingeloggt bleiben
Zugangsdaten vergessen?
Registrieren
Projektverwaltung
⇨ Please choose! ⇦
——————————————————
✎ Create new project...
★ Browse existing projects...
——————————————————
⚬ MotorTest#1
⚬ C Tutorial 8#1
⚬ NIBO2 C Project#1
⚙ C Tutorial 15#1
⚬ 2010_11_18_el_test001#1
Multitask...optimiert
cdll.c
cdll.h
condition.c
condition.h
main.c
mutex.c
mutex.h
scheduler.S
semaphore.c
semaphore.h
thread.c
thread.h
Project details
Compiler settings
Nachrichten
Sie sind nicht eingeloggt.
Neuigkeiten
★
NiboRoboLib 3.6
2017-01-17: Neue Version 3.6
★
NiboRoboLib 3.4.1
2016-04-16: Neue Version 3.4.1
★
Coding Tutorial
2015-11-22: Jetzt auch für den NIBO burger!
Site-Statistic
7426 private projects
385 public projects
16180353 lines compiled
58212 builds
NIBO
@
multitasking_opt/condition.h [read only]
#ifndef CONDITION_H #define CONDITION_H #include "thread.h" #include "mutex.h" /** * Mit einem Conditions ist es möglich, mehrere Thrads gleichzeitig über ein Ereignis zu * informieren. Das Broadcasten einer Condition weckt alle wartenden Threads auf! */ typedef struct _condition_s { cdll_t waiting_threads; } condition_t; /** * Condition initialisieren */ void condition_init(condition_t * condition); /** * */ void condition_delete(condition_t * condition); /** * Der Funktionsaufruf gibt den Mutex frei und wartet auf die Signalisierung. Bevor die Funktion zurückkehrt wird der Mutex wieder gelockt! */ uint8_t condition_wait(condition_t * condition, mutex_t * mutex, uint16_t timeout); /** * Einen wartenden Thread informieren */ void condition_signal(condition_t * condition); /** * Alle wartenden Threads informieren */ void condition_broadcast(condition_t * condition); /** * Einen wartenden Thread informieren */ void condition_signalISR(condition_t * condition); /** * Alle wartenden Threads informieren */ void condition_broadcastISR(condition_t * condition); #endif
Compiler results:
Werbung
Online
BobbiSaush
dtsjada1842883129
elidabaylee669745
giahill891542995
hopewyman5990749
janinalomax603906209