X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Furcu-qsbr.c;h=98e27655031ac1afe8985ae5b9089d5d968dfb7c;hb=2ea38794876c907639971035ed29c4e59964fd7f;hp=b538edc734ca231909d8154add1a2b90bc2072f9;hpb=111bda8f5fa6ff4d5d50605ccbe56d9622498ef4;p=userspace-rcu.git diff --git a/src/urcu-qsbr.c b/src/urcu-qsbr.c index b538edc..98e2765 100644 --- a/src/urcu-qsbr.c +++ b/src/urcu-qsbr.c @@ -1,25 +1,11 @@ +// SPDX-FileCopyrightText: 2009 Mathieu Desnoyers +// SPDX-FileCopyrightText: 2009 Paul E. McKenney, IBM Corporation. +// +// SPDX-License-Identifier: LGPL-2.1-or-later + /* - * urcu-qsbr.c - * * Userspace RCU QSBR library * - * Copyright (c) 2009 Mathieu Desnoyers - * Copyright (c) 2009 Paul E. McKenney, IBM Corporation. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * * IBM's contributions to this file may be relicensed under LGPLv2 or later. */ @@ -53,6 +39,7 @@ #define _LGPL_SOURCE void __attribute__((destructor)) urcu_qsbr_exit(void); +static void urcu_call_rcu_exit(void); /* * rcu_gp_lock ensures mutual exclusion between threads calling @@ -509,6 +496,7 @@ void urcu_qsbr_exit(void) * readers, and left running at exit. * urcu_posix_assert(cds_list_empty(®istry)); */ + urcu_call_rcu_exit(); } DEFINE_RCU_FLAVOR(rcu_flavor);