1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sync public fns

This commit is contained in:
Alexander Medvednikov 2019-06-26 18:29:43 +02:00
parent 5b5c6b7918
commit 2ca6859982

View File

@ -9,11 +9,11 @@ struct Mutex {
mutex C.pthread_mutex_t
}
fn (m Mutex) lock() {
pub fn (m Mutex) lock() {
C.pthread_mutex_lock(&m.mutex)
}
fn (m Mutex) unlock() {
pub fn (m Mutex) unlock() {
C.pthread_mutex_unlock(&m.mutex)
}