aboutsummaryrefslogtreecommitdiff
path: root/src/reader.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-07-19 11:35:11 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-07-19 11:35:11 -0300
commitd359c0af4874534efa810729d47f610a29687e93 (patch)
tree9a89b06444819e7e5cef84aa826682b3b01bfd03 /src/reader.cc
parent638244fd078fe91971e57b1d06e4499268d99c42 (diff)
downloadgame-d359c0af4874534efa810729d47f610a29687e93.tar.gz
game-d359c0af4874534efa810729d47f610a29687e93.zip
THREADING: upgrade from LinuxThreads to NPTL
This was a required change to make the server run on a modern GLIBC version without resorting to shady shared libraries or compatibility tricks. It is very straightforward but we should always keep an eye out for possible bugs. There was also a problem with the Z loop on field sending functions that was causing the server to hang in an infinite loop and should now be fixed. With these changes it is now possible to login into the game for a split second before the client asserting.
Diffstat (limited to 'src/reader.cc')
-rw-r--r--src/reader.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.cc b/src/reader.cc
index 09d739b..a29b35b 100644
--- a/src/reader.cc
+++ b/src/reader.cc
@@ -135,11 +135,11 @@ void ProcessLoadCharacterOrder(uint32 CharacterID){
break;
}
- if(Slot->Locked == GetGameThreadPID()){
+ if(Slot->Locked == GetGameThreadID()){
break;
}
- if(Slot->Locked == getpid()){
+ if(Slot->Locked == gettid()){
IncreasePlayerPoolSlotSticky(Slot);
ReleasePlayerPoolSlot(Slot);
CharacterReply(CharacterID);