![]() |
![]() |
TI-OpenThread
1.08.06.06
|
This file contains the definitions of the stack protective mutex.
#include <stdint.h>
Go to the source code of this file.
Functions | |
void | OtRtosApi_init (void) |
void | OtRtosApi_lock (void) |
void | OtRtosApi_unlock (void) |
void OtRtosApi_init | ( | void | ) |
Initialize the RTOS mutex protecting the OpenThread APIs.
This function must be called before OtRtosApi_lock and OtRtosApi_unlock.
Initialize the RTOS mutex protecting the OpenThread APIs.
Documented in ot_rtos_api.h.
void OtRtosApi_lock | ( | void | ) |
Lock the OpenThread Stack mutex.
This function must be called before interacting with the OpenThread APIs. This function will lock the mutex protecting the OpenThread Stack, and assure single threaded access to the Stack code.
The time between OtRtosApi_lock and OtRtosApi_unlock should be kept to a minimum to avoid starving the stack of processing time.
Lock the OpenThread Stack mutex.
Documented in ot_rtos_api.h.
void OtRtosApi_unlock | ( | void | ) |
Unlock the openthread stack mutex.
This function must be called after interacting with the OpenThread APIs. This function will restore the mutex protecting the OpenThread Stack to the state it was before OtRtosApi_lock was called.
The time between OtRtosApi_lock and OtRtosApi_unlock should be kept to a minimum to avoid starving the stack of processing time.
Unlock the OpenThread Stack mutex.
Documented in ot_rtos_api.h.