projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d8b738
)
(acquire): Use helper function.
author
drepper
<drepper>
Mon, 20 Apr 1998 18:13:14 +0000
(18:13 +0000)
committer
drepper
<drepper>
Mon, 20 Apr 1998 18:13:14 +0000
(18:13 +0000)
linuxthreads/spinlock.h
patch
|
blob
|
history
diff --git
a/linuxthreads/spinlock.h
b/linuxthreads/spinlock.h
index
d324abb
..
1707d3e
100644
(file)
--- a/
linuxthreads/spinlock.h
+++ b/
linuxthreads/spinlock.h
@@
-15,9
+15,11
@@
/* Spin locks */
+extern void __pthread_acquire(int * spinlock);
+
static inline void acquire(int * spinlock)
{
-
while (testandset(spinlock)) __sched_yield(
);
+
if (testandset(spinlock)) __pthread_acquire(spinlock
);
}
static inline void release(int * spinlock)