IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
iotmi_pal_Mutex.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
3 *
4 * AMAZON PROPRIETARY/CONFIDENTIAL
5 *
6 * You may not use this file except in compliance with the terms and
7 * conditions set forth in the accompanying LICENSE.txt file.
8 *
9 * THESE MATERIALS ARE PROVIDED ON AN "AS IS" BASIS. AMAZON SPECIFICALLY
10 * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,
11 * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,
12 * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
13 */
14
20#ifndef IOTMI_PAL_MUTEX_H_
21#define IOTMI_PAL_MUTEX_H_
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
30struct iotmiPal_MutexStruct;
31typedef struct iotmiPal_MutexStruct* iotmiPal_MutexHandle_t;
32
38iotmiPal_MutexHandle_t iotmiPal_mutexCreate(void);
39
47int iotmiPal_mutexLock(iotmiPal_MutexHandle_t mutex);
48
56int iotmiPal_mutexUnlock(iotmiPal_MutexHandle_t mutex);
57
65int iotmiPal_mutexDestroy(iotmiPal_MutexHandle_t mutex);
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* IOTMI_PAL_MUTEX_H_ */
iotmiPal_MutexHandle_t iotmiPal_mutexCreate(void)
Create a mutex.
int iotmiPal_mutexUnlock(iotmiPal_MutexHandle_t mutex)
Unlock a mutex.
int iotmiPal_mutexLock(iotmiPal_MutexHandle_t mutex)
Lock a mutex.
int iotmiPal_mutexDestroy(iotmiPal_MutexHandle_t mutex)
Destroy a mutex.