mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib: use sync.new_mutex() consistently for initialising all vlib structures containing mutex fields
This commit is contained in:
parent
2643970945
commit
717076bef6
4 changed files with 6 additions and 6 deletions
|
@ -23,10 +23,10 @@ pub struct CancelContext {
|
|||
id string
|
||||
mut:
|
||||
context Context
|
||||
mutex &sync.Mutex
|
||||
mutex &sync.Mutex = sync.new_mutex()
|
||||
done chan int
|
||||
children map[string]Canceler
|
||||
err IError
|
||||
err IError = none
|
||||
}
|
||||
|
||||
// with_cancel returns a copy of parent with a new done channel. The returned
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue