Remove use of .no_copy
This commit is contained in:
1 parent
6a10cfdc30
commit
9b8223dd69
3 files changed
+3
-3
No files matched your search
@@ -47,7 +47,7 @@ wait_group_add :: proc "contextless" (wg: ^Wait_Group, delta: int) {
|
||||
guard(&wg.mutex)
|
||||
|
||||
atomic_add(&wg.counter, delta)
|
||||
switch counter := atomic_load(&wg.counter); counter {
|
||||
switch counter := atomic_load(&wg.counter); {
|
||||
case counter < 0:
|
||||
panic_contextless("sync.Wait_Group negative counter")
|
||||
case wg.counter == 0:
|
||||
|
||||
Reference in new issue
Block a user