mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Kernel: Make Process's m_promises & m_execpromises fields atomic
This is essentially free on x86 and allows us to not hold the big process lock just to check the required promises for a syscall.
This commit is contained in:
parent
868be680c2
commit
c3f668a758
4 changed files with 12 additions and 12 deletions
|
@ -92,10 +92,10 @@ protected:
|
|||
gid_t m_sgid { 0 };
|
||||
Vector<gid_t> m_extra_gids;
|
||||
bool m_dumpable { false };
|
||||
bool m_has_promises { false };
|
||||
u32 m_promises { 0 };
|
||||
bool m_has_execpromises { false };
|
||||
u32 m_execpromises { 0 };
|
||||
Atomic<bool> m_has_promises { false };
|
||||
Atomic<u32> m_promises { 0 };
|
||||
Atomic<bool> m_has_execpromises { false };
|
||||
Atomic<u32> m_execpromises { 0 };
|
||||
mode_t m_umask { 022 };
|
||||
VirtualAddress m_signal_trampoline;
|
||||
Atomic<u32> m_thread_count { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue