mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 08:35:09 +00:00
Kernel: Add an InterruptFlagSaver helper class.
This is useful instead of InterruptDisabler in some cases.
This commit is contained in:
parent
cd1bbdf052
commit
b782055b96
5 changed files with 28 additions and 18 deletions
|
@ -262,6 +262,8 @@ int Process::gui$set_global_cursor_tracking_enabled(int window_id, bool enabled)
|
|||
|
||||
void Process::destroy_all_windows()
|
||||
{
|
||||
InterruptFlagSaver saver;
|
||||
sti();
|
||||
for (auto& it : m_windows) {
|
||||
auto message = make<WSMessage>(WSMessage::WM_DestroyWindow);
|
||||
it.value->notify_process_died(Badge<Process>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue