mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
12 lines
274 B
V
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)})'
|
|
}
|