mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
all: experimental locked concurrency support, part 1 (#5637)
This commit is contained in:
parent
27149ba8bc
commit
3b067f5f85
27 changed files with 510 additions and 51 deletions
|
@ -17,7 +17,8 @@ pub fn new_mutex() &Mutex {
|
|||
return m
|
||||
}
|
||||
|
||||
pub fn (mut m Mutex) lock() {
|
||||
// m_lock(), for *manual* mutex handling, since `lock` is a keyword
|
||||
pub fn (mut m Mutex) m_lock() {
|
||||
C.pthread_mutex_lock(&m.mutex)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue