mirror of
https://github.com/NixOS/nix
synced 2025-07-03 06:11:46 +02:00
Make some more threads receive interrupts
Shouldn't hurt to do this. In particular, this should speed up shutting down the PathSubstitutionGoal thread if it's copying from a remote store.
This commit is contained in:
parent
24e70489e5
commit
295a2ff8bd
2 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,8 @@ void ThreadPool::process()
|
|||
|
||||
void ThreadPool::doWork(bool mainThread)
|
||||
{
|
||||
ReceiveInterrupts receiveInterrupts;
|
||||
|
||||
if (!mainThread)
|
||||
interruptCheck = [&]() { return (bool) quit; };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue