mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
log: improve the most common use case (#19242)
This commit is contained in:
parent
55575fd7bd
commit
6fb4a481f8
16 changed files with 576 additions and 150 deletions
11
vlib/sync/common_mutex.v
Normal file
11
vlib/sync/common_mutex.v
Normal file
|
@ -0,0 +1,11 @@
|
|||
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)})'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue