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

Implementation of newlib locking. More...

Include dependency graph for locking.cpp:

Namespaces

 distortos
 Top-level namespace of distortos project.
 
 distortos::internal
 Internals of distortos project - should not be used directly!
 

Functions

void __malloc_lock ()
 Recursively locks Mutex used for malloc() and free() locking. More...
 
void __malloc_unlock ()
 Recursively unlocks Mutex used for malloc() and free() locking. More...
 

Variables

Mutex distortos::internal::mallocMutexInstance {Mutex::Type::recursive, Mutex::Protocol::priorityInheritance}
 main instance of Mutex used for malloc() and free() locking More...
 

Detailed Description

Implementation of newlib locking.

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

Function Documentation

◆ __malloc_lock()

void __malloc_lock ( )

Recursively locks Mutex used for malloc() and free() locking.

Here is the call graph for this function:

◆ __malloc_unlock()

void __malloc_unlock ( )

Recursively unlocks Mutex used for malloc() and free() locking.

Here is the call graph for this function: