pthread

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MUTEX_RECURSIVE = 1

Variables

This section is empty.

Functions

func CondFree added in v0.3.3

func CondFree(c *sync.Cond) int32

func CondInit added in v0.3.3

func CondInit(c *sync.Cond, attr *CondAttr) int32

func Create

func Create(th **Thread, attr *Attr, start func(unsafe.Pointer) unsafe.Pointer, arg unsafe.Pointer) int32

Types

type Attr

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

type CondAttr added in v0.3.3

type CondAttr struct {
}

type Mutex

type Mutex struct {
	*sync.Mutex
}

func (*Mutex) CLock added in v0.3.3

func (m *Mutex) CLock() int32

func (*Mutex) CUnlock added in v0.3.3

func (m *Mutex) CUnlock() int32

func (*Mutex) Destroy

func (m *Mutex) Destroy() int32

func (*Mutex) Init

func (m *Mutex) Init(attr *MutexAttr) int32

func (*Mutex) TimedLock

func (m *Mutex) TimedLock(t *libc.TimeSpec) int32

func (*Mutex) TryLock

func (m *Mutex) TryLock() int32

type MutexAttr

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

func (*MutexAttr) Destroy

func (m *MutexAttr) Destroy() int32

func (*MutexAttr) Init

func (m *MutexAttr) Init() int32

func (*MutexAttr) SetType

func (m *MutexAttr) SetType(typ int32) int32

type Thread

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

func (*Thread) Join

func (th *Thread) Join(ret unsafe.Pointer) int32

func (*Thread) TimedJoinNP

func (th *Thread) TimedJoinNP(ret unsafe.Pointer, abs *libc.TimeSpec) int32

Jump to

Keyboard shortcuts

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