[FIXED] I found a deadlock
#1
A quick overview of what thread locks what criticalsection
Code:
ServerTickThread
Owns cServer::m_CSClients
Wait cSocketThreads::m_CS

cSocketThread
Owns cSocketThreads::m_CS
Wait cServer::m_CSClients

cServer::ServerListenThread
Wait cSocketThreads::m_CS // Doesn't really matter, but it blocks new clients

The deadlock is between ServerTickThread and cSocketThread

ServerTickThread callstack:
[Image: Screenshot-2012-03-04_14.13.04.png]


cSocketThread callstack:
[Image: Screenshot-2012-03-04_14.14.23.png]
Reply
Thanks given by:


Messages In This Thread
[FIXED] I found a deadlock - by FakeTruth - 03-04-2012, 11:14 PM
RE: I found a deadlock - by xoft - 03-05-2012, 06:45 AM
RE: I found a deadlock - by xoft - 03-06-2012, 03:16 AM



Users browsing this thread: 1 Guest(s)