mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
@@ -30,6 +30,18 @@ fn C.pthread_cond_wait(voidptr, voidptr) int
|
||||
fn C.pthread_cond_timedwait(voidptr, voidptr, voidptr) int
|
||||
fn C.pthread_cond_destroy(voidptr) int
|
||||
|
||||
[typedef]
|
||||
struct C.pthread_mutex_t {}
|
||||
|
||||
[typedef]
|
||||
struct C.pthread_rwlock_t {}
|
||||
|
||||
[typedef]
|
||||
struct C.pthread_rwlockattr_t {}
|
||||
|
||||
[typedef]
|
||||
struct C.sem_t {}
|
||||
|
||||
// [init_with=new_mutex] // TODO: implement support for this struct attribute, and disallow Mutex{} from outside the sync.new_mutex() function.
|
||||
[heap]
|
||||
pub struct Mutex {
|
||||
|
||||
Reference in New Issue
Block a user