v/vlib/sync/common_mutex.v
2023-08-31 06:44:11 +03:00

12 lines
272 B
V

module sync
// str returns a string representation of the Mutex pointer
pub fn (m &Mutex) str() string {
return 'Mutex(${voidptr(m)})'
}
// str returns a string representation of the RwMutex pointer
pub fn (m &RwMutex) str() string {
return 'RwMutex(${voidptr(m)})'
}