Implement -freuse-stack= option
[official-gcc.git] / libgo / go / sync / runtime.go
blobe99599c11ae36f6d8d8134a83ae568647aa3d148
1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 package sync
7 // defined in package runtime
9 // Semacquire waits until *s > 0 and then atomically decrements it.
10 // It is intended as a simple sleep primitive for use by the synchronization
11 // library and should not be used directly.
12 func runtime_Semacquire(s *uint32)
14 // Semrelease atomically increments *s and notifies a waiting goroutine
15 // if one is blocked in Semacquire.
16 // It is intended as a simple wakeup primitive for use by the synchronization
17 // library and should not be used directly.
18 func runtime_Semrelease(s *uint32)