While browsing through the other posts i read that accessing a database to insert/load/update ect can cause the processing function to block while this is happening.
Does this mean that: void ThreadFunction () will continue fine but: if (ProcessPlayerPacket(buffer, player, true)) function wont be usable untill it has finshed dealing with the custom database packet?
If so would creating a second process function to deal with only database querys fix that, like having: if (ProcessDatabasePacket(buffer, player, true)) above the process player packet function, Would that allow if (ProcessPlayerPacket(buffer, player, true)) to continue as normal?