Documentation ¶
Index ¶
Constants ¶
const ( LLGoFiles = "_wrap/pthd.c" LLGoPackage = "link" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cond ¶
type Cond C.pthread_cond_t
Cond is a condition variable.
type CondAttr ¶
type CondAttr C.pthread_condattr_t
CondAttr is a condition variable attribute object.
func (*CondAttr) Destroy ¶
func (a *CondAttr) Destroy()
llgo:link (*CondAttr).Destroy C.pthread_condattr_destroy
type Mutex ¶
type Mutex C.pthread_mutex_t
Mutex is a mutual exclusion lock.
func (*Mutex) Destroy ¶
func (m *Mutex) Destroy()
llgo:link (*Mutex).Destroy C.pthread_mutex_destroy
type MutexAttr ¶
type MutexAttr C.pthread_mutexattr_t
MutexAttr is a mutex attribute object.
func (*MutexAttr) Destroy ¶
func (a *MutexAttr) Destroy()
llgo:link (*MutexAttr).Destroy C.pthread_mutexattr_destroy
type MutexType ¶
const ( MUTEX_NORMAL MutexType = C.PTHREAD_MUTEX_NORMAL MUTEX_ERRORCHECK MutexType = C.PTHREAD_MUTEX_ERRORCHECK MUTEX_RECURSIVE MutexType = C.PTHREAD_MUTEX_RECURSIVE MUTEX_DEFAULT MutexType = C.PTHREAD_MUTEX_DEFAULT )
type Once ¶
type Once C.pthread_once_t
Once is an object that will perform exactly one action.
var OnceInit Once
type RWLock ¶
type RWLock C.pthread_rwlock_t
RWLock is a read-write lock.
func (*RWLock) Destroy ¶
func (rw *RWLock) Destroy()
llgo:link (*RWLock).Destroy C.pthread_rwlock_destroy
func (*RWLock) Init ¶
func (rw *RWLock) Init(attr *RWLockAttr) c.Int
llgo:link (*RWLock).Init C.pthread_rwlock_init
func (*RWLock) RUnlock ¶
func (rw *RWLock) RUnlock()
llgo:link (*RWLock).RUnlock C.pthread_rwlock_unlock
type RWLockAttr ¶
type RWLockAttr C.pthread_rwlockattr_t
RWLockAttr is a read-write lock attribute object.
func (*RWLockAttr) Destroy ¶
func (a *RWLockAttr) Destroy()
llgo:link (*RWLockAttr).Destroy C.pthread_rwlockattr_destroy
func (*RWLockAttr) GetPShared ¶
func (a *RWLockAttr) GetPShared(pshared *c.Int) c.Int
llgo:link (*RWLockAttr).GetPShared C.pthread_rwlockattr_getpshared
func (*RWLockAttr) Init ¶
func (a *RWLockAttr) Init(attr *RWLockAttr) c.Int
llgo:link (*RWLockAttr).Init C.pthread_rwlockattr_init
func (*RWLockAttr) SetPShared ¶
func (a *RWLockAttr) SetPShared(pshared c.Int) c.Int
llgo:link (*RWLockAttr).SetPShared C.pthread_rwlockattr_setpshared