distortos  v0.6.0
object-oriented C++ RTOS for microcontrollers
C-API-Semaphore.cpp File Reference

Implementation of C-API for distortos::Semaphore. More...

Include dependency graph for C-API-Semaphore.cpp:


int distortos_Semaphore_construct_1 (distortos_Semaphore *const semaphore, const unsigned int value, const unsigned int maxValue)
 C-API equivalent of distortos::Semaphore's constructor. More...
int distortos_Semaphore_destruct (distortos_Semaphore *const semaphore)
 C-API equivalent of distortos::Semaphore's destructor. More...
int distortos_Semaphore_getValue (const distortos_Semaphore *const semaphore, unsigned int *const value)
int distortos_Semaphore_post (distortos_Semaphore *const semaphore)
 C-API equivalent of distortos::Semaphore::post() More...
int distortos_Semaphore_tryWait (distortos_Semaphore *const semaphore)
 C-API equivalent of distortos::Semaphore::tryWait() More...
int distortos_Semaphore_tryWaitFor (distortos_Semaphore *const semaphore, const int64_t duration)
 C-API equivalent of distortos::Semaphore::tryWaitFor() More...
int distortos_Semaphore_tryWaitUntil (distortos_Semaphore *const semaphore, const int64_t timePoint)
 C-API equivalent of distortos::Semaphore::tryWaitUntil() More...
int distortos_Semaphore_wait (distortos_Semaphore *const semaphore)
 C-API equivalent of distortos::Semaphore::wait() More...

Detailed Description

Implementation of C-API for distortos::Semaphore.

Copyright (C) 2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
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/.