| 1 | module sync |
| 2 | |
| 3 | // str returns a string representation of the Mutex pointer. |
| 4 | pub fn (m &Mutex) str() string { |
| 5 | return 'Mutex(${voidptr(m)})' |
| 6 | } |
| 7 | |
| 8 | // str returns a string representation of the RwMutex pointer. |
| 9 | pub fn (m &RwMutex) str() string { |
| 10 | return 'RwMutex(${voidptr(m)})' |
| 11 | } |
| 12 | |