X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Furcu%2Furcu-bp.h;h=152c53665ddf64bafdba1c507cdd5d093d3a2f2a;hb=HEAD;hp=e28c2bff8e7db3e0fda163b1655369e6799ceac4;hpb=2ad3cfebe9d73f2a1f7f2b9a5c013a9759f14f73;p=urcu.git diff --git a/include/urcu/urcu-bp.h b/include/urcu/urcu-bp.h index e28c2bf..152c536 100644 --- a/include/urcu/urcu-bp.h +++ b/include/urcu/urcu-bp.h @@ -1,41 +1,28 @@ +// SPDX-FileCopyrightText: 2009 Mathieu Desnoyers +// SPDX-FileCopyrightText: 2009 Paul E. McKenney, IBM Corporation. +// +// SPDX-License-Identifier: LGPL-2.1-or-later + #ifndef _URCU_BP_H #define _URCU_BP_H /* - * urcu-bp.h - * * Userspace RCU header, "bulletproof" version. * * Slower RCU read-side adapted for tracing library. Does not require thread * registration nor unregistration. Also signal-safe. * - * Copyright (c) 2009 Mathieu Desnoyers - * Copyright (c) 2009 Paul E. McKenney, IBM Corporation. - * * LGPL-compatible code should include this header with : * * #define _LGPL_SOURCE * #include * - * 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. */ #include #include +#include #include @@ -52,6 +39,7 @@ * publication headers. */ #include +#include #ifdef __cplusplus extern "C" { @@ -140,6 +128,12 @@ extern void *urcu_bp_set_pointer_sym(void **p, void *v); extern void urcu_bp_synchronize_rcu(void); +/* + * RCU grace period polling API. + */ +extern struct urcu_gp_poll_state urcu_bp_start_poll_synchronize_rcu(void); +extern bool urcu_bp_poll_state_synchronize_rcu(struct urcu_gp_poll_state state); + /* * urcu_bp_before_fork, urcu_bp_after_fork_parent and urcu_bp_after_fork_child * should be called around fork() system calls when the child process is not