Kernel: Make Thread::Blocker non-copyable and non-movable

This commit is contained in:
Andreas Kling 2021-08-23 01:06:47 +02:00
commit 63f9b0d0dc
Notes: sideshowbarker 2024-07-18 05:21:23 +09:00

View file

@ -279,6 +279,9 @@ public:
class BlockerSet;
class Blocker {
AK_MAKE_NONMOVABLE(Blocker);
AK_MAKE_NONCOPYABLE(Blocker);
public:
enum class Type {
Unknown = 0,
@ -336,6 +339,8 @@ public:
BlockResult end_blocking(Badge<Thread>, bool);
protected:
Blocker() { }
void do_set_interrupted_by_death()
{
m_was_interrupted_by_death = true;