projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run clang-format on the whole tree
[lttng-tools.git]
/
src
/
common
/
futex.cpp
diff --git
a/src/common/futex.cpp
b/src/common/futex.cpp
index e178b7e1b4f1e8a99de25e42b10733266353ada0..1b9f7fc9288cae694e21cad369ffc87dc7ea174e 100644
(file)
--- a/
src/common/futex.cpp
+++ b/
src/common/futex.cpp
@@
-7,15
+7,15
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
+#include "futex.hpp"
+
+#include <common/common.hpp>
+
#include <limits.h>
#include <unistd.h>
#include <urcu.h>
#include <urcu/futex.h>
#include <limits.h>
#include <unistd.h>
#include <urcu.h>
#include <urcu/futex.h>
-#include <common/common.hpp>
-
-#include "futex.hpp"
-
/*
* This futex wait/wake scheme only works for N wakers / 1 waiters. Hence the
* "nto1" added to all function signature.
/*
* This futex wait/wake scheme only works for N wakers / 1 waiters. Hence the
* "nto1" added to all function signature.
@@
-42,8
+42,7
@@
void futex_wait_update(int32_t *futex, int active)
{
if (active) {
uatomic_set(futex, 1);
{
if (active) {
uatomic_set(futex, 1);
- if (futex_async(futex, FUTEX_WAKE,
- INT_MAX, NULL, NULL, 0) < 0) {
+ if (futex_async(futex, FUTEX_WAKE, INT_MAX, NULL, NULL, 0) < 0) {
PERROR("futex_async");
abort();
}
PERROR("futex_async");
abort();
}
@@
-90,7
+89,7
@@
void futex_nto1_wait(int32_t *futex)
goto end;
case EINTR:
/* Retry if interrupted by signal. */
goto end;
case EINTR:
/* Retry if interrupted by signal. */
- break;
/* Get out of switch. Check again. */
+ break; /* Get out of switch. Check again. */
default:
/* Unexpected error. */
PERROR("futex_async");
default:
/* Unexpected error. */
PERROR("futex_async");
This page took
0.023469 seconds
and
4
git commands to generate.