projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Warn the user when enabling an event in a new domain
[lttng-tools.git]
/
src
/
common
/
futex.c
diff --git
a/src/common/futex.c
b/src/common/futex.c
index adfe66b1c29feb3295949253f315819c8d110d92..0b27a5bd7bb2b7360dbba351919da0c5a8a13c08 100644
(file)
--- a/
src/common/futex.c
+++ b/
src/common/futex.c
@@
-23,7
+23,7
@@
#include <urcu.h>
#include <urcu/futex.h>
#include <urcu.h>
#include <urcu/futex.h>
-#include <common/
error
.h>
+#include <common/
common
.h>
#include "futex.h"
#include "futex.h"
@@
-49,6
+49,7
@@
* futex() call. If active, we set the value and wake everyone else we indicate
* that we are gone (cleanup() case).
*/
* futex() call. If active, we set the value and wake everyone else we indicate
* that we are gone (cleanup() case).
*/
+LTTNG_HIDDEN
void futex_wait_update(int32_t *futex, int active)
{
if (active) {
void futex_wait_update(int32_t *futex, int active)
{
if (active) {
@@
-65,6
+66,7
@@
void futex_wait_update(int32_t *futex, int active)
/*
* Prepare futex.
*/
/*
* Prepare futex.
*/
+LTTNG_HIDDEN
void futex_nto1_prepare(int32_t *futex)
{
uatomic_set(futex, -1);
void futex_nto1_prepare(int32_t *futex)
{
uatomic_set(futex, -1);
@@
-76,6
+78,7
@@
void futex_nto1_prepare(int32_t *futex)
/*
* Wait futex.
*/
/*
* Wait futex.
*/
+LTTNG_HIDDEN
void futex_nto1_wait(int32_t *futex)
{
cmm_smp_mb();
void futex_nto1_wait(int32_t *futex)
{
cmm_smp_mb();
@@
-90,6
+93,7
@@
void futex_nto1_wait(int32_t *futex)
/*
* Wake 1 futex.
*/
/*
* Wake 1 futex.
*/
+LTTNG_HIDDEN
void futex_nto1_wake(int32_t *futex)
{
if (caa_unlikely(uatomic_read(futex) == -1)) {
void futex_nto1_wake(int32_t *futex)
{
if (caa_unlikely(uatomic_read(futex) == -1)) {
This page took
0.024228 seconds
and
4
git commands to generate.