fix describe mismatch in pthread.h

This commit is contained in:
fuxiaohei
2024-07-26 14:53:27 +08:00
parent 98d075728f
commit 666be94a71

View File

@@ -76,14 +76,18 @@ func (m *Mutex) Init(attr *MutexAttr) c.Int { return 0 }
// llgo:link (*Mutex).Destroy C.pthread_mutex_destroy // llgo:link (*Mutex).Destroy C.pthread_mutex_destroy
func (m *Mutex) Destroy() {} func (m *Mutex) Destroy() {}
// llgo:link (*Mutex).Lock C.pthread_mutex_lock func (m *Mutex) Lock() { m.lockInternal() }
func (m *Mutex) Lock() {}
// llgo:link (*Mutex).lockInternal C.pthread_mutex_lock
func (m *Mutex) lockInternal() c.Int { return 0 }
// llgo:link (*Mutex).TryLock C.pthread_mutex_trylock // llgo:link (*Mutex).TryLock C.pthread_mutex_trylock
func (m *Mutex) TryLock() c.Int { return 0 } func (m *Mutex) TryLock() c.Int { return 0 }
// llgo:link (*Mutex).Unlock C.pthread_mutex_unlock func (m *Mutex) Unlock() { m.unlockInternal() }
func (m *Mutex) Unlock() {}
// llgo:link (*Mutex).unlockInternal C.pthread_mutex_unlock
func (m *Mutex) unlockInternal() c.Int { return 0 }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------