mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 16:02:43 +01:00
Make abort() call sites log first
This commit is contained in:
parent
e48e0cbab0
commit
3172e88af5
35 changed files with 88 additions and 45 deletions
|
|
@ -7,6 +7,8 @@
|
|||
#include <condition_variable>
|
||||
#include <cassert>
|
||||
|
||||
#include "error.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
/**
|
||||
|
|
@ -47,7 +49,7 @@ public:
|
|||
friend SyncBase;
|
||||
Lock(SyncBase * s) : s(s), lk(s->mutex) { }
|
||||
public:
|
||||
Lock(Lock && l) : s(l.s) { abort(); }
|
||||
Lock(Lock && l) : s(l.s) { unreachable(); }
|
||||
Lock(const Lock & l) = delete;
|
||||
~Lock() { }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue