Skip to content

Commit 7d89e46

Browse files
committed
Sync: Support moving out of another Sync
1 parent e5e5c81 commit 7d89e46

File tree

1 file changed

+1
-0
lines changed
  • src/libutil/include/nix/util

1 file changed

+1
-0
lines changed

src/libutil/include/nix/util/sync.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public:
3939
SyncBase() { }
4040
SyncBase(const T & data) : data(data) { }
4141
SyncBase(T && data) noexcept : data(std::move(data)) { }
42+
SyncBase(SyncBase && other) noexcept : data(std::move(*other.lock())) { }
4243

4344
template<class L>
4445
class Lock

0 commit comments

Comments
 (0)