TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mutex.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2019, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __OS_WRAPPER_MUTEX_H__
9 #define __OS_WRAPPER_MUTEX_H__
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #include "common.h"
16 
22 void *os_wrapper_mutex_create(void);
23 
37 uint32_t os_wrapper_mutex_acquire(void *handle, uint32_t timeout);
38 
47 uint32_t os_wrapper_mutex_release(void *handle);
48 
56 uint32_t os_wrapper_mutex_delete(void *handle);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* __OS_WRAPPER_MUTEX_H__ */
uint32_t os_wrapper_mutex_release(void *handle)
Releases the mutex acquired previously.
void * os_wrapper_mutex_create(void)
Creates a mutex for mutual exclusion of resources.
uint32_t os_wrapper_mutex_delete(void *handle)
Deletes a mutex that is created by os_wrapper_mutex_create()
uint32_t os_wrapper_mutex_acquire(void *handle, uint32_t timeout)
Acquires a mutex that is created by os_wrapper_mutex_create()