Document thread registration in urcu.h
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 16 May 2009 21:27:06 +0000 (17:27 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 16 May 2009 21:27:06 +0000 (17:27 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu.h

diff --git a/urcu.h b/urcu.h
index b46033f..af7d75c 100644 (file)
--- a/urcu.h
+++ b/urcu.h
 #include <stdlib.h>
 #include <pthread.h>
 
+/*
+ * Important !
+ *
+ * Each thread containing read-side critical sections must be registered
+ * with rcu_register_thread() before calling rcu_read_lock().
+ * rcu_unregister_thread() should be called before the thread exits.
+ */
+
 #ifdef _LGPL_SOURCE
 
 #include <urcu-static.h>
This page took 0.030655 seconds and 4 git commands to generate.