distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
C-API-Mutex.cpp File Reference

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

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

Functions

int distortos_Mutex_construct_3 (distortos_Mutex *const mutex, const uint8_t type, const uint8_t protocol, const uint8_t priorityCeiling)
 C-API equivalent of distortos::Mutex's constructor. More...
 
int distortos_Mutex_destruct (distortos_Mutex *const mutex)
 C-API equivalent of distortos::Mutex's destructor. More...
 
int distortos_Mutex_lock (distortos_Mutex *const mutex)
 C-API equivalent of distortos::Mutex::lock() More...
 
int distortos_Mutex_tryLock (distortos_Mutex *const mutex)
 C-API equivalent of distortos::Mutex::tryLock() More...
 
int distortos_Mutex_tryLockFor (distortos_Mutex *const mutex, const int64_t duration)
 C-API equivalent of distortos::Mutex::tryLockFor() More...
 
int distortos_Mutex_tryLockUntil (distortos_Mutex *const mutex, const int64_t timePoint)
 C-API equivalent of distortos::Mutex::tryLockUntil() More...
 
int distortos_Mutex_unlock (distortos_Mutex *const mutex)
 C-API equivalent of distortos::Mutex::unlock() More...
 

Detailed Description

Implementation of C-API for distortos::Mutex.

Author
Copyright (C) 2017 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/.