Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrioritySemaphore ¶
type PrioritySemaphore struct {
// contains filtered or unexported fields
}
func NewPrioritySemaphore ¶
func NewPrioritySemaphore(capacity int) *PrioritySemaphore
func (*PrioritySemaphore) Acquire ¶
func (s *PrioritySemaphore) Acquire(priority int)
func (*PrioritySemaphore) Release ¶
func (s *PrioritySemaphore) Release()
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
func NewSemaphore ¶
Click to show internal directories.
Click to hide internal directories.