projects
/
platform
/
upstream
/
gcc48.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 4.8.1
[platform/upstream/gcc48.git]
/
libgo
/
runtime
/
lock_futex.c
diff --git
a/libgo/runtime/lock_futex.c
b/libgo/runtime/lock_futex.c
index
9a533a5
..
5374aff
100644
(file)
--- a/
libgo/runtime/lock_futex.c
+++ b/
libgo/runtime/lock_futex.c
@@
-111,7
+111,8
@@
runtime_noteclear(Note *n)
void
runtime_notewakeup(Note *n)
{
- runtime_xchg(&n->key, 1);
+ if(runtime_xchg(&n->key, 1))
+ runtime_throw("notewakeup - double wakeup");
runtime_futexwakeup(&n->key, 1);
}