X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fcommon%2Fdebug-yield.c;fp=tests%2Fcommon%2Fdebug-yield.c;h=8f06a9ddea0a7fb19facc24d86e6bd504c43014d;hb=169e1020838cc5b9f3df503d160ce1bf0c939b2f;hp=0000000000000000000000000000000000000000;hpb=5bcf8326b6e13ca93429925bc38fb81c73155c54;p=urcu.git 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);