Loading...
Searching...
No Matches
pthread_mutex.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
15
16#include <time.h>
17
18#include "mutex.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
30
39
48
58
67
75int pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *abstime);
76
87
95int pthread_mutex_getprioceiling(const pthread_mutex_t *mutex, int *prioceiling);
96
105int pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int prioceiling, int *old_ceiling);
106
107#ifdef __cplusplus
108}
109#endif
110
Mutex for thread synchronization.
int pthread_mutex_lock(pthread_mutex_t *mutex)
Lock and hold a mutex.
int pthread_mutex_trylock(pthread_mutex_t *mutex)
Try to lock a mutex.
int pthread_mutex_destroy(pthread_mutex_t *mutex)
Destroy a mutex.
int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr)
Initialize a mutex.
int pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *abstime)
Not implemented, yet.
int pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int prioceiling, int *old_ceiling)
Not implemented, yet.
int pthread_mutex_unlock(pthread_mutex_t *mutex)
Unlock a mutex.
int pthread_mutex_getprioceiling(const pthread_mutex_t *mutex, int *prioceiling)
Not implemented, yet.
mutex_t pthread_mutex_t
Pthread mutexes are quite the same as RIOT mutexes.
Mutex structure.
Definition mutex.h:36
This type is unused right now, and only exists for POSIX compatibility.