diff options
Diffstat (limited to 'libgo/go/sync/runtime.go')
-rw-r--r-- | libgo/go/sync/runtime.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libgo/go/sync/runtime.go b/libgo/go/sync/runtime.go index b6b9e48..3ad44e7 100644 --- a/libgo/go/sync/runtime.go +++ b/libgo/go/sync/runtime.go @@ -15,14 +15,18 @@ func runtime_Semacquire(s *uint32) // SemacquireMutex is like Semacquire, but for profiling contended Mutexes. // If lifo is true, queue waiter at the head of wait queue. -func runtime_SemacquireMutex(s *uint32, lifo bool) +// skipframes is the number of frames to omit during tracing, counting from +// runtime_SemacquireMutex's caller. +func runtime_SemacquireMutex(s *uint32, lifo bool, skipframes int) // Semrelease atomically increments *s and notifies a waiting goroutine // if one is blocked in Semacquire. // It is intended as a simple wakeup primitive for use by the synchronization // library and should not be used directly. // If handoff is true, pass count directly to the first waiter. -func runtime_Semrelease(s *uint32, handoff bool) +// skipframes is the number of frames to omit during tracing, counting from +// runtime_Semrelease's caller. +func runtime_Semrelease(s *uint32, handoff bool, skipframes int) // Approximation of notifyList in runtime/sema.go. Size and alignment must // agree. |