Expose nop QSBR read lock to non-GPL/LGPL programs
[urcu.git] / urcu-qsbr.c
index 4ce2f9acdea1e1758f626f3dc14630922ab65be6..ccecab4e7b02b63d80f6c87085486dee0a5452f5 100644 (file)
@@ -32,6 +32,7 @@
 #include <errno.h>
 #include <poll.h>
 
+#define BUILD_QSBR_LIB
 #include "urcu-qsbr-static.h"
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
 #include "urcu-qsbr.h"
@@ -114,9 +115,6 @@ static void wait_for_quiescent_state(void)
 {
        struct reader_registry *index;
 
-        if (rcu_reader_qs_gp & 1)
-            rcu_reader_qs_gp = urcu_gp_ctr + 1;
-
        if (!registry)
                return;
        /*
This page took 0.023159 seconds and 4 git commands to generate.