Devilution
Diablo devolved - magic behind the 1996 computer game
Functions | Variables
nthread.cpp File Reference
#include "all.h"
#include "../3rdParty/Storm/Source/storm.h"

Go to the source code of this file.

Functions

void nthread_terminate_game (const char *pszFcn)
 
DWORD nthread_send_and_recv_turn (DWORD cur_turn, int turn_delta)
 
BOOL nthread_recv_turns (BOOL *pfSendAsync)
 
void nthread_set_turn_upper_bit ()
 
void nthread_start (BOOL set_turn_upper_bit)
 
unsigned int nthread_handler (void *data)
 
void nthread_cleanup ()
 
void nthread_ignore_mutex (BOOL bStart)
 
BOOL nthread_has_500ms_passed (BOOL unused)
 

Variables

DEVILUTION_BEGIN_NAMESPACE BYTE sgbNetUpdateRate
 
DWORD gdwMsgLenTbl [MAX_PLRS]
 
static CCritSect sgMemCrit
 
DWORD gdwDeltaBytesSec
 
BOOLEAN nthread_should_run
 
DWORD gdwTurnsInTransit
 
uintptr_t glpMsgTbl [MAX_PLRS]
 
SDL_threadID glpNThreadId
 
char sgbSyncCountdown
 
int turn_upper_bit
 
BOOLEAN sgbTicsOutOfSync
 
char sgbPacketCountdown
 
BOOLEAN sgbThreadIsRunning
 
DWORD gdwLargestMsgSize
 
DWORD gdwNormalMsgSize
 
int last_tick
 
static SDL_Thread * sghThread = NULL
 

Detailed Description

Implementation of functions for managing game ticks.

Definition in file nthread.cpp.