RIOT POSIX condition variable API.
More...
#include <time.h>
#include "mutex.h"
#include "priority_queue.h"
Go to the source code of this file.
◆ pthread_cond_broadcast()
unblock all threads that are currently blocked on the specified condition variable cond
- Parameters
-
[in,out] | cond | pre-allocated condition variable structure. |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_cond_condattr_destroy()
Uninitializes a condition attribute variable object.
- Parameters
-
[in,out] | attr | pre-allocated condition attribute variable structure. |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_cond_condattr_init()
Initializes a condition attribute variable object using default values.
- Parameters
-
[in,out] | attr | pre-allocated condition attribute variable structure. |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_cond_destroy()
Destroy the condition variable cond.
- Parameters
-
[in,out] | cond | pre-allocated condition variable structure. |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_cond_init()
Initializes a condition variable object.
- Parameters
-
[in,out] | cond | pre-allocated condition variable structure. |
[in] | attr | pre-allocated condition attribute variable structure. |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_cond_signal()
unblock at least one of the threads that are blocked on the specified condition variable cond
- Parameters
-
[in,out] | cond | pre-allocated condition variable structure. |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_cond_timedwait()
blocks the calling thread until the specified condition cond is signalled
- Parameters
-
[in,out] | cond | pre-allocated condition variable structure. |
[in,out] | mutex | pre-allocated mutex variable structure. |
[in] | abstime | pre-allocated timeout. |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_cond_wait()
blocks the calling thread until the specified condition cond is signalled
- Parameters
-
[in,out] | cond | pre-allocated condition variable structure. |
[in,out] | mutex | pre-allocated mutex variable structure. |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_condattr_getclock()
Get the clock selected for the condition variable attribute attr.
- Note
- currently NOT USED in RIOT.
- Parameters
-
[in] | attr | pre-allocated condition attribute variable structure. |
[out] | clock_id | the clock ID that is used to measure the timeout service |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_condattr_getpshared()
Get the process-shared attribute in an initialized attributes object referenced by attr.
- Note
- NOT USED since RIOT is a single process OS
- Parameters
-
[in] | attr | pre-allocated condition attribute variable structure. |
[out] | pshared | the pre-allocated process-shared variable. |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_condattr_setclock()
Set the clock selected for the condition variable attribute ATTR.
- Note
- currently NOT USED in RIOT.
- Parameters
-
[in,out] | attr | pre-allocated condition attribute variable structure. |
[in] | clock_id | the clock ID that shall be used to measure the timeout service |
- Returns
- returns 0 on success, an errorcode otherwise.
◆ pthread_condattr_setpshared()
Set the process-shared attribute in an initialized attributes object referenced by attr.
- Note
- NOT USED since RIOT is a single process OS
- Parameters
-
[in,out] | attr | pre-allocated condition attribute variable structure. |
[in] | pshared | pshared the pre-allocated process-shared variable. |
- Returns
- returns 0 on success, an errorcode otherwise.