locksutil

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLocks

func CreateLocks(p map[string]*sync.RWMutex, count int64) error

Takes in a map, indexed by string and creates new 'sync.RWMutex' items. This utility creates 'count' number of mutexes (with a cap of 256) and places them in the map. The indices will be 2 character hexadecimal string values from 0 to count.

Types

This section is empty.

Jump to

Keyboard shortcuts

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