mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:17:35 +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 BlockerSet;
|
||||||
|
|
||||||
class Blocker {
|
class Blocker {
|
||||||
|
AK_MAKE_NONMOVABLE(Blocker);
|
||||||
|
AK_MAKE_NONCOPYABLE(Blocker);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum class Type {
|
enum class Type {
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
|
@ -336,6 +339,8 @@ public:
|
||||||
BlockResult end_blocking(Badge<Thread>, bool);
|
BlockResult end_blocking(Badge<Thread>, bool);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Blocker() { }
|
||||||
|
|
||||||
void do_set_interrupted_by_death()
|
void do_set_interrupted_by_death()
|
||||||
{
|
{
|
||||||
m_was_interrupted_by_death = true;
|
m_was_interrupted_by_death = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue