Loading...
Searching...
No Matches
threading_alt.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include "riot_mbedtls_config.h"
23
24#if IS_ACTIVE(MBEDTLS_THREADING_ALT)
25#include "mutex.h"
26
30typedef struct {
31 mutex_t riot_mutex;
32} mbedtls_threading_mutex_t;
33
34#endif /* MBEDTLS_THREADING_ALT */
35
36#ifdef __cplusplus
37}
38#endif
Mutex for thread synchronization.
Configuration options (set of defines)
Mutex structure.
Definition mutex.h:36