dpl_mutex.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Inria
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef DPL_DPL_MUTEX_H
21 #define DPL_DPL_MUTEX_H
22 
23 #include "dpl_types.h"
24 #include "dpl_error.h"
25 
26 #include "mutex.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
35 struct dpl_mutex {
37 };
38 
45 
58 dpl_error_t dpl_mutex_pend(struct dpl_mutex *mu, dpl_time_t timeout);
59 
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* DPL_DPL_MUTEX_H */
dpl_error.h
uwb-core DPL (Decawave Porting Layer) error types
dpl_mutex_init
dpl_error_t dpl_mutex_init(struct dpl_mutex *mu)
Initializes a mutex object.
dpl_mutex_pend
dpl_error_t dpl_mutex_pend(struct dpl_mutex *mu, dpl_time_t timeout)
Pend (wait) for a mutex.
dpl_mutex::mutex
mutex_t mutex
the mutex
Definition: dpl_mutex.h:36
dpl_mutex
dpl mutex wrapper
Definition: dpl_mutex.h:35
dpl_time_t
uint32_t dpl_time_t
dpl time type
Definition: dpl_types.h:55
dpl_mutex_release
dpl_error_t dpl_mutex_release(struct dpl_mutex *mu)
Release a mutex.
mutex.h
Mutex for thread synchronization.
dpl_error_t
enum dpl_error dpl_error_t
dep error type
Definition: dpl_error.h:49
dpl_types.h
uwb-core DPL (Decawave Porting Layer) types
mutex_t
Mutex structure.
Definition: mutex.h:120