src/pkg/sync/runtime.go - The Go Programming Language

Golang

Source file src/pkg/sync/runtime.go

     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.
     4	
     5	package sync
     6	
     7	// defined in package runtime
     8	
     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)
    13	
    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)