diff --git a/src/user/cptr_cache_user.c b/src/user/cptr_cache_user.c index 5a5910c72f2a4b840cf255f026c3ac175d1eb102..5b7553c21a3d0935df437e3565a5bef17d0fcc4c 100644 --- a/src/user/cptr_cache_user.c +++ b/src/user/cptr_cache_user.c @@ -50,7 +50,7 @@ void __cptr_init() __spinlocks = calloc(__cache_lines, sizeof(*__spinlocks)); for (i = 0; i < __cache_lines; ++i) { - pthread_spin_init(&__spinlocks[i], 0); + pthread_spin_init(&__spinlocks[i], PTHREAD_PROCESS_PRIVATE); } return;