sync

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LLGoPackage = "link"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cond

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

func NewCond

func NewCond(l gosync.Locker) *Cond

func (*Cond) Broadcast

func (c *Cond) Broadcast()

llgo:link (*Cond).Broadcast C.pthread_cond_broadcast

func (*Cond) Signal

func (c *Cond) Signal()

llgo:link (*Cond).Signal C.pthread_cond_signal

func (*Cond) Wait

func (c *Cond) Wait()

type Mutex

type Mutex sync.Mutex

func (*Mutex) Lock

func (m *Mutex) Lock()

func (*Mutex) TryLock

func (m *Mutex) TryLock() bool

func (*Mutex) Unlock

func (m *Mutex) Unlock()

llgo:link (*Mutex).Unlock C.pthread_mutex_unlock

type Once

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

func (*Once) Do

func (o *Once) Do(f func())

type RWMutex

type RWMutex sync.RWLock

func (*RWMutex) Lock

func (rw *RWMutex) Lock()

func (*RWMutex) RLock

func (rw *RWMutex) RLock()

func (*RWMutex) RUnlock

func (rw *RWMutex) RUnlock()

llgo:link (*RWMutex).RUnlock C.pthread_rwlock_unlock

func (*RWMutex) TryLock

func (rw *RWMutex) TryLock() bool

func (*RWMutex) TryRLock

func (rw *RWMutex) TryRLock() bool

func (*RWMutex) Unlock

func (rw *RWMutex) Unlock()

llgo:link (*RWMutex).Unlock C.pthread_rwlock_unlock

type WaitGroup

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

func (*WaitGroup) Add

func (wg *WaitGroup) Add(delta int)

func (*WaitGroup) Done

func (wg *WaitGroup) Done()

func (*WaitGroup) Wait

func (wg *WaitGroup) Wait()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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