Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b2491a2e
authored
Jun 20, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base_c: added documentation for spurious wakeups with pthreads
parent
04ead31a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
base_c/include/embb/base/c/condition_variable.h
+9
-0
No files found.
base_c/include/embb/base/c/condition_variable.h
View file @
b2491a2e
...
@@ -110,6 +110,9 @@ int embb_condition_notify_all(
...
@@ -110,6 +110,9 @@ int embb_condition_notify_all(
* \threadsafe
* \threadsafe
* \see embb_condition_notify_one(), embb_condition_notify_all(),
* \see embb_condition_notify_one(), embb_condition_notify_all(),
* embb_condition_wait_until(), embb_condition_wait_for()
* embb_condition_wait_until(), embb_condition_wait_for()
* \note When pthreads is used as the underlying library, this function may issue
* spurious wake ups to a waiting thread. Therefore it is recommended to
* use a loop checking the condition after a wakeup.
*/
*/
int
embb_condition_wait
(
int
embb_condition_wait
(
embb_condition_t
*
condition_var
,
embb_condition_t
*
condition_var
,
...
@@ -131,6 +134,9 @@ int embb_condition_wait(
...
@@ -131,6 +134,9 @@ int embb_condition_wait(
* \threadsafe
* \threadsafe
* \see embb_condition_notify_one(), embb_condition_notify_all(),
* \see embb_condition_notify_one(), embb_condition_notify_all(),
* embb_condition_wait(), embb_condition_wait_for()
* embb_condition_wait(), embb_condition_wait_for()
* \note When pthreads is used as the underlying library, this function may issue
* spurious wake ups to a waiting thread. Therefore it is recommended to
* use a loop checking the condition after a wakeup.
*/
*/
int
embb_condition_wait_until
(
int
embb_condition_wait_until
(
embb_condition_t
*
condition_var
,
embb_condition_t
*
condition_var
,
...
@@ -154,6 +160,9 @@ int embb_condition_wait_until(
...
@@ -154,6 +160,9 @@ int embb_condition_wait_until(
* \threadsafe
* \threadsafe
* \see embb_condition_notify_one(), embb_condition_notify_all(),
* \see embb_condition_notify_one(), embb_condition_notify_all(),
* embb_condition_wait(), embb_condition_wait_until()
* embb_condition_wait(), embb_condition_wait_until()
* \note When pthreads is used as the underlying library, this function may issue
* spurious wake ups to a waiting thread. Therefore it is recommended to
* use a loop checking the condition after a wakeup.
*/
*/
int
embb_condition_wait_for
(
int
embb_condition_wait_for
(
embb_condition_t
*
condition_var
,
embb_condition_t
*
condition_var
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment