1 // SPDX-FileCopyrightText: 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Userspace RCU library - test multiple RCU flavors into one program
9 #ifndef DYNAMIC_LINK_TEST
13 #include <urcu/urcu-mb.h>
14 #include <urcu/urcu-bp.h>
15 #include <urcu/urcu-memb.h>
16 #include <urcu/urcu-signal.h>
17 #include <urcu/urcu-qsbr.h>
22 static int test_mf_mb(void)
24 urcu_mb_register_thread();
26 urcu_mb_read_unlock();
27 urcu_mb_synchronize_rcu();
28 urcu_mb_unregister_thread();
32 static int test_mf_bp(void)
34 urcu_bp_register_thread();
36 urcu_bp_read_unlock();
37 urcu_bp_synchronize_rcu();
38 urcu_bp_unregister_thread();
42 static int test_mf_memb(void)
44 urcu_memb_register_thread();
45 urcu_memb_read_lock();
46 urcu_memb_read_unlock();
47 urcu_memb_synchronize_rcu();
48 urcu_memb_unregister_thread();
52 static int test_mf_signal(void)
54 urcu_signal_register_thread();
55 urcu_signal_read_lock();
56 urcu_signal_read_unlock();
57 urcu_signal_synchronize_rcu();
58 urcu_signal_unregister_thread();
62 static int test_mf_qsbr(void)
64 urcu_qsbr_register_thread();
65 urcu_qsbr_read_lock();
66 urcu_qsbr_read_unlock();
67 urcu_qsbr_synchronize_rcu();
68 urcu_qsbr_unregister_thread();
79 ok1(!test_mf_signal());
This page took 0.033784 seconds and 5 git commands to generate.