pthread_self should be cast to unsigned long
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 29 Jun 2011 18:12:23 +0000 (14:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 29 Jun 2011 18:12:23 +0000 (14:12 -0400)
Used as part of the random seed along with time().

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/static/urcu.h

index 5ba3004ddb17ccef50f69be9925ed8181923d65b..f2293bca5054db275cd52e413a2e954ecd60af86 100644 (file)
@@ -146,7 +146,7 @@ static inline void debug_yield_write(void)
 
 static inline void debug_yield_init(void)
 {
-       rand_yield = time(NULL) ^ pthread_self();
+       rand_yield = time(NULL) ^ (unsigned long) pthread_self();
 }
 #else
 static inline void debug_yield_read(void)
This page took 0.026007 seconds and 4 git commands to generate.