소스 검색

prepare pthread_spin_unlock for archs that need memory barriers

Rich Felker 14 년 전
부모
커밋
d8dc2faf10
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/thread/pthread_spin_unlock.c

+ 2 - 1
src/thread/pthread_spin_unlock.c

@@ -2,5 +2,6 @@
 
 int pthread_spin_unlock(pthread_spinlock_t *s)
 {
-	return *s = 0;
+	a_store(s, 0);
+	return 0;
 }