X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fstatic%2Furcu-bp.h;h=c52a68870dbadfb9c45ca2e688a5e45d39d25f3c;hb=f878b49ebb78010f4f9466d3512a7e88787812b2;hp=6187bd31b5325fb292057e95f7236285cb846019;hpb=1de4df4b770e5e90440008becc5e14a15c75c6e0;p=urcu.git 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)