mirror of
https://github.com/vlang/v.git
synced 2025-09-08 14:51:53 -04:00
12 lines
272 B
V
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)})'
|
|
}
|