X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffutex.c;h=d0f95abc8b8175ebb4bf158bd7df364cad2f4bcd;hb=3afa94aeca5a0daae40fd7b6cc96b7e4c150c7d8;hp=2ae03b27d13c47b85510795ee9f657a1bc2c3cd6;hpb=890d8fe47755c3bad936389cf48ffa141cff41c9;p=lttng-tools.git diff --git a/src/common/futex.c b/src/common/futex.c index 2ae03b27d..d0f95abc8 100644 --- a/src/common/futex.c +++ b/src/common/futex.c @@ -1,24 +1,13 @@ /* - * Copyright (C) 2011 - David Goulet - * Mathieu Desnoyers + * Copyright (C) 2011 David Goulet + * Copyright (C) 2011 Mathieu Desnoyers * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #define _LGPL_SOURCE #include -#include #include #include #include @@ -49,7 +38,6 @@ * 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) { @@ -69,7 +57,6 @@ void futex_wait_update(int32_t *futex, int active) /* * Prepare futex. */ -LTTNG_HIDDEN void futex_nto1_prepare(int32_t *futex) { uatomic_set(futex, -1); @@ -81,7 +68,6 @@ void futex_nto1_prepare(int32_t *futex) /* * Wait futex. */ -LTTNG_HIDDEN void futex_nto1_wait(int32_t *futex) { cmm_smp_mb(); @@ -109,7 +95,6 @@ end: /* * Wake 1 futex. */ -LTTNG_HIDDEN void futex_nto1_wake(int32_t *futex) { if (caa_unlikely(uatomic_read(futex) != -1))