mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00

committed by
Alexander Medvednikov

parent
0a8d2d5dc7
commit
b907cf2179
@ -32,7 +32,12 @@ pub fn (wg mut WaitGroup) done() {
|
||||
|
||||
pub fn (wg mut WaitGroup) wait() {
|
||||
for wg.active > 0 {
|
||||
// waiting
|
||||
// Do not remove this, busy empty loops are optimized
|
||||
// with -prod by some compilers, see issue #2874
|
||||
$if windows {
|
||||
C.Sleep(1)
|
||||
} $else {
|
||||
C.usleep(1000)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user