1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

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

This commit is contained in:
Andreas Kling 2021-08-23 01:06:47 +02:00
parent f2a77f0c2c
commit 63f9b0d0dc

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;