aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-06-14 19:13:53 -0700
committerJade Lovelace <lix@jade.fyi>2024-06-18 15:11:31 -0700
commit3626738b9b801b2922b668ede7f7b83330d99018 (patch)
treeaace3ea4cbf2f4e3b785f44b6383d980cbaffb2b /.github
parentce2b48aa41ed8e6f3eed60a20e3e2afb244457b6 (diff)
libutil: tidy Sync and fix its move constructor
There was a previously-unused move constructor that just called abort, which makes no sense since it ought to just be `= delete` if you don't want one (commit history says it was Eelco doing an optimistic performance optimisation in 2016, so it probably would not pass review today). However, a Lock has some great reasons to be moved! You might need to unlock it early, for instance, or give it to someone else. So we change the move constructor to instead hollow out the moved-from object and make it unusable. Change-Id: Iff2a4c2f7ebd0a558c4866d4dfe526bc8558bed7
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions