all: experimental locked concurrency support, part 1 (#5637)

This commit is contained in:
Uwe Krüger 2020-07-04 12:44:25 +02:00 committed by GitHub
parent 27149ba8bc
commit 3b067f5f85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 510 additions and 51 deletions

View file

@ -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)
}