mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
Destroy all remaining windows in a process when it dies.
This commit is contained in:
parent
3a4207b863
commit
5c25f0c4db
7 changed files with 30 additions and 6 deletions
|
@ -71,9 +71,15 @@ int WSMessageLoop::exec()
|
|||
}
|
||||
}
|
||||
|
||||
void WSMessageLoop::post_message(WSMessageReceiver* receiver, OwnPtr<WSMessage>&& message)
|
||||
void WSMessageLoop::post_message(WSMessageReceiver* receiver, OwnPtr<WSMessage>&& message, bool unsafe)
|
||||
{
|
||||
ASSERT_INTERRUPTS_ENABLED();
|
||||
if (unsafe) {
|
||||
// FIXME: This is such a hack. It should not exist.
|
||||
m_queued_messages.append({ receiver, move(message) });
|
||||
if (current != m_server_process)
|
||||
m_server_process->request_wakeup();
|
||||
return;
|
||||
}
|
||||
LOCKER(m_lock);
|
||||
#ifdef WSEVENTLOOP_DEBUG
|
||||
dbgprintf("WSMessageLoop::post_message: {%u} << receiver=%p, message=%p\n", m_queued_messages.size(), receiver, message.ptr());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue