X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fstatic%2Furcu-bp.h;h=c52a68870dbadfb9c45ca2e688a5e45d39d25f3c;hp=6187bd31b5325fb292057e95f7236285cb846019;hb=6ff854acfa013195bdb71dddc654ec76a4c296c9;hpb=8cbc3cdca7f1320e3c2412654091fe94931ce62b diff --git a/urcu/static/urcu-bp.h b/urcu/static/urcu-bp.h index 6187bd3..c52a688 100644 --- a/urcu/static/urcu-bp.h +++ b/urcu/static/urcu-bp.h @@ -93,7 +93,7 @@ static inline void rcu_debug_yield_write(void) static inline void rcu_debug_yield_init(void) { - URCU_TLS(rcu_rand_yield) = time(NULL) ^ pthread_self(); + URCU_TLS(rcu_rand_yield) = time(NULL) ^ (unsigned long) pthread_self(); } #else static inline void rcu_debug_yield_read(void)