uLib
az_pal_os_api.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3 
8 #ifndef AZ_PAL_OS_API_H
9 #define AZ_PAL_OS_API_H
10 
11 #include "azure_macro_utils/macro_utils.h"
12 #include "umock_c/umock_c_prod.h"
13 
14 #include "az_pal_os.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
32 
39 
47 
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif /* AZ_PAL_OS_API_H */
void az_pal_os_lock_acquire(AZ_PAL_OS_LOCK *lock)
Acquires a lock on the given lock handle. Uses platform specific mutex primitives in its implementati...
void az_pal_os_lock_init(AZ_PAL_OS_LOCK *lock)
This API initialize and returns a valid lock handle.
void az_pal_os_lock_release(AZ_PAL_OS_LOCK *lock)
Releases the lock on the given lock handle. Uses platform specific mutex primitives in its implementa...
void az_pal_os_lock_deinit(AZ_PAL_OS_LOCK *lock)
The lock instance is destroyed.
pointer to a platform specific struct for a lock implementation