mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Make MutexQueue use jsemaphore for signaling
This commit is contained in:
@@ -592,8 +592,9 @@ void * Connection::Thread()
|
||||
|
||||
runTimeouts(dtime);
|
||||
|
||||
//NOTE this is only thread safe for ONE consumer thread!
|
||||
while(!m_command_queue.empty()){
|
||||
ConnectionCommand c = m_command_queue.pop_front();
|
||||
ConnectionCommand c = m_command_queue.pop_frontNoEx();
|
||||
processCommand(c);
|
||||
}
|
||||
|
||||
@@ -1556,7 +1557,7 @@ ConnectionEvent Connection::getEvent()
|
||||
e.type = CONNEVENT_NONE;
|
||||
return e;
|
||||
}
|
||||
return m_event_queue.pop_front();
|
||||
return m_event_queue.pop_frontNoEx();
|
||||
}
|
||||
|
||||
ConnectionEvent Connection::waitEvent(u32 timeout_ms)
|
||||
|
Reference in New Issue
Block a user