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
/
go
/
sync
/
once.go
diff --git
a/libgo/go/sync/once.go
b/libgo/go/sync/once.go
index
04b714a
..
1699e86
100644
(file)
--- a/
libgo/go/sync/once.go
+++ b/
libgo/go/sync/once.go
@@
-38,6
+38,6
@@
func (o *Once) Do(f func()) {
defer o.m.Unlock()
if o.done == 0 {
f()
- atomic.
CompareAndSwapUint32(&o.done, 0
, 1)
+ atomic.
StoreUint32(&o.done
, 1)
}
}