mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 03:09:35 +01:00
Merge commit '5fcf7f04a9' into progress-bar
This commit is contained in:
commit
fece09cad9
18 changed files with 156 additions and 105 deletions
|
|
@ -1205,7 +1205,7 @@ void closeOnExec(int fd)
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
bool _isInterrupted = false;
|
||||
std::atomic<bool> _isInterrupted = false;
|
||||
|
||||
static thread_local bool interruptThrown = false;
|
||||
thread_local std::function<bool()> interruptCheck;
|
||||
|
|
|
|||
|
|
@ -337,7 +337,7 @@ void closeOnExec(int fd);
|
|||
|
||||
/* User interruption. */
|
||||
|
||||
extern bool _isInterrupted;
|
||||
extern std::atomic<bool> _isInterrupted;
|
||||
|
||||
extern thread_local std::function<bool()> interruptCheck;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue