module sync #include struct Mutex { mutex C.pthread_mutex_t } fn (m Mutex) lock() { C.pthread_mutex_lock(&m.mutex) } fn (m Mutex) unlock() { C.pthread_mutex_unlock(&m.mutex) }