Signal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

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

Lock 信号锁:作用是模拟JAVA的Wait(timeout)、Notify()

func New

func New(timeout int64) *Lock

func (*Lock) Signal

func (e *Lock) Signal()

func (*Lock) Wait

func (e *Lock) Wait()

Jump to

Keyboard shortcuts

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