X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fcommon%2Fdebug-yield.c;fp=tests%2Fcommon%2Fdebug-yield.c;h=8f06a9ddea0a7fb19facc24d86e6bd504c43014d;hp=0000000000000000000000000000000000000000;hb=2650042a5405028da49bfcfb71053b78a56a9ed4;hpb=6a3d2c224f2f0f0f7f8c852b80e5864b2cab9e1b diff --git a/tests/common/debug-yield.c b/tests/common/debug-yield.c new file mode 100644 index 0000000..8f06a9d --- /dev/null +++ b/tests/common/debug-yield.c @@ -0,0 +1,31 @@ +/* + * debug-yield.c + * + * Userspace RCU library tests - Debugging code + * + * 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. + */ + +#include +#include "debug-yield.h" + +unsigned int rcu_yield_active; + +DEFINE_URCU_TLS(unsigned int, rcu_rand_yield);