[FIXED] I found a deadlock - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: [FIXED] I found a deadlock (/thread-374.html) |
[FIXED] I found a deadlock - FakeTruth - 03-04-2012 A quick overview of what thread locks what criticalsection Code: ServerTickThread The deadlock is between ServerTickThread and cSocketThread ServerTickThread callstack: cSocketThread callstack: RE: I found a deadlock - xoft - 03-05-2012 I guess client deleting can be done postponed - in the TickThread make a list of clients to be deleted, move clients to that list while the CS is locked, then unlock the CS and delete clients from the list. RE: I found a deadlock - xoft - 03-06-2012 I fixed your deadlock (rev 369) |