mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
std.Progress: call refreshWithHeldLock as appropriate
This commit is contained in:
parent
4f7d76f19c
commit
2b321c25ce
@ -103,12 +103,10 @@ pub const Node = struct {
|
||||
}
|
||||
parent.completeOne();
|
||||
} else {
|
||||
{
|
||||
const held = self.context.update_lock.acquire();
|
||||
defer held.release();
|
||||
self.context.done = true;
|
||||
}
|
||||
self.context.refresh();
|
||||
const held = self.context.update_lock.acquire();
|
||||
defer held.release();
|
||||
self.context.done = true;
|
||||
self.context.refreshWithHeldLock();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user