tests: Use uatomic for accessing global states
[userspace-rcu.git] / tests / common / debug-yield.c
1 // SPDX-FileCopyrightText: 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2 // SPDX-FileCopyrightText: 2009 Paul E. McKenney, IBM Corporation.
3 //
4 // SPDX-License-Identifier: LGPL-2.1-or-later
5
6 /*
7 * Userspace RCU library tests - Debugging code
8 *
9 * IBM's contributions to this file may be relicensed under LGPLv2 or later.
10 */
11
12 #include <urcu/tls-compat.h>
13 #include "debug-yield.h"
14
15 unsigned int rcu_yield_active;
16
17 DEFINE_URCU_TLS(unsigned int, rcu_rand_yield);
This page took 0.029855 seconds and 4 git commands to generate.