1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 06:57:35 +00:00

WindowServer: Remove "unsafe" flag in WSMessageLoop::post_event().

This hack is no longer needed now that we have a Finalizer process that can
take locks without having to worry about the interrupt flag.
This commit is contained in:
Andreas Kling 2019-02-11 13:05:51 +01:00
parent f7b25773ab
commit 26230c0647
3 changed files with 4 additions and 13 deletions

View file

@ -67,15 +67,8 @@ int WSMessageLoop::exec()
}
}
void WSMessageLoop::post_message(WSMessageReceiver* receiver, OwnPtr<WSMessage>&& message, bool unsafe)
void WSMessageLoop::post_message(WSMessageReceiver* receiver, OwnPtr<WSMessage>&& message)
{
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());