v/vlib/sync/common_mutex.v
2025-06-27 10:29:09 +03:00

12 lines
274 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)})'
}