X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffutex.h;h=92a8446746265daf53066e6bde370deea699a262;hb=6e53c52d3bf42bac72d7437684657ac442499616;hp=9bdb2c140f92b8d8f20da1fd46429040cb371d2b;hpb=50c8f4840cc0cf140c760159c8705592d6b434ea;p=lttng-tools.git diff --git a/src/common/futex.h b/src/common/futex.h index 9bdb2c140..92a844674 100644 --- a/src/common/futex.h +++ b/src/common/futex.h @@ -1,27 +1,25 @@ /* - * 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. */ #ifndef _LTT_FUTEX_H #define _LTT_FUTEX_H +#ifdef __cplusplus +extern "C" { +#endif + void futex_wait_update(int32_t *futex, int active); void futex_nto1_prepare(int32_t *futex); void futex_nto1_wait(int32_t *futex); void futex_nto1_wake(int32_t *futex); +#ifdef __cplusplus +} +#endif + #endif /* _LTT_FUTEX_H */