distortos  v0.6.0
object-oriented C++ RTOS for microcontrollers
ConditionVariable.h File Reference

Header of C-API for distortos::ConditionVariable. More...

#include "estd/C-API/IntrusiveList.h"
#include <stdint.h>
Include dependency graph for ConditionVariable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  distortos_ConditionVariable
 C-API equivalent of distortos::ConditionVariable. More...
 

Macros

#define DISTORTOS_CONDITIONVARIABLE_INITIALIZER(self)   {ESTD_INTRUSIVELIST_INITIALIZER((self).blockedList)}
 Initializer for distortos_ConditionVariable. More...
 
#define DISTORTOS_CONDITIONVARIABLE_CONSTRUCT(name)   struct distortos_ConditionVariable name = DISTORTOS_CONDITIONVARIABLE_INITIALIZER(name)
 C-API equivalent of distortos::ConditionVariable's constructor. More...
 

Functions

int distortos_ConditionVariable_construct (struct distortos_ConditionVariable *conditionVariable)
 C-API equivalent of distortos::ConditionVariable's constructor. More...
 
int distortos_ConditionVariable_destruct (struct distortos_ConditionVariable *conditionVariable)
 C-API equivalent of distortos::ConditionVariable's destructor. More...
 
int distortos_ConditionVariable_notifyAll (struct distortos_ConditionVariable *conditionVariable)
 C-API equivalent of distortos::ConditionVariable::notifyAll() More...
 
int distortos_ConditionVariable_notifyOne (struct distortos_ConditionVariable *conditionVariable)
 C-API equivalent of distortos::ConditionVariable::notifyOne() More...
 
int distortos_ConditionVariable_wait (struct distortos_ConditionVariable *conditionVariable, struct distortos_Mutex *mutex)
 C-API equivalent of distortos::ConditionVariable::wait() More...
 
int distortos_ConditionVariable_waitFor (struct distortos_ConditionVariable *conditionVariable, struct distortos_Mutex *mutex, int64_t duration)
 C-API equivalent of distortos::ConditionVariable::waitFor() More...
 
int distortos_ConditionVariable_waitUntil (struct distortos_ConditionVariable *conditionVariable, struct distortos_Mutex *mutex, int64_t timePoint)
 C-API equivalent of distortos::ConditionVariable::waitUntil() More...
 

Detailed Description

Header of C-API for distortos::ConditionVariable.

Author
Copyright (C) 2017-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.