Fix data type, should now be long rather than int.
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Mon, 9 Feb 2009 18:00:31 +0000 (13:00 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Mon, 9 Feb 2009 18:00:31 +0000 (13:00 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu.c
urcu.h

diff --git a/urcu.c b/urcu.c
index 5514b278e4322b0f600a6d3427eab700057dc573..53c7f37677f762280b2a6337a6820bdf22c55faf 100644 (file)
--- a/urcu.c
+++ b/urcu.c
@@ -20,9 +20,9 @@
 pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 /* Global grace period counter */
-int urcu_gp_ctr;
+long urcu_gp_ctr;
 
-int __thread urcu_active_readers;
+long __thread urcu_active_readers;
 
 /* Thread IDs of registered readers */
 #define INIT_NUM_THREADS 4
diff --git a/urcu.h b/urcu.h
index b8f6d9b29ab20a73b40b547261294c0f033c56e8..424980650474953be7c7e081ec0fe07f5e14d034 100644 (file)
--- a/urcu.h
+++ b/urcu.h
@@ -175,13 +175,13 @@ static inline void debug_yield_init(void)
  * Using a int rather than a char to eliminate false register dependencies
  * causing stalls on some architectures.
  */
-extern int urcu_gp_ctr;
+extern long urcu_gp_ctr;
 
-extern int __thread urcu_active_readers;
+extern long __thread urcu_active_readers;
 
 static inline int rcu_old_gp_ongoing(int *value)
 {
-       int v;
+       long v;
 
        if (value == NULL)
                return 0;
@@ -194,7 +194,7 @@ static inline int rcu_old_gp_ongoing(int *value)
 
 static inline void rcu_read_lock(void)
 {
-       int tmp;
+       long tmp;
 
        debug_yield_read();
        tmp = urcu_active_readers;
This page took 0.02663 seconds and 4 git commands to generate.