cync

package
v0.0.0-...-f5c3557 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package cync implements some sync extras

"cync" is pronounced "sync".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Semaphore

type Semaphore struct {
	// contains filtered or unexported fields
}

Semaphore implements a basic counting semaphore

func NewSemaphore

func NewSemaphore(count int) *Semaphore

NewSemaphore creates a new counting semaphore

func (*Semaphore) Lock

func (s *Semaphore) Lock()

Lock implements sync.Locker.Lock()

func (*Semaphore) Unlock

func (s *Semaphore) Unlock()

Unlock implements sync.Locker.Unlock()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL