v / vlib / sync / common_mutex.v
11 lines · 9 sloc · 274 bytes · 6b45931598fd8e405fd53f8fa35d72be639b73e1
Raw
1module sync
2
3// str returns a string representation of the Mutex pointer.
4pub fn (m &Mutex) str() string {
5 return 'Mutex(${voidptr(m)})'
6}
7
8// str returns a string representation of the RwMutex pointer.
9pub fn (m &RwMutex) str() string {
10 return 'RwMutex(${voidptr(m)})'
11}
12