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:
parent
f2a77f0c2c
commit
63f9b0d0dc
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue