]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - server.h
added Sys_PrintfToTerminal function for convenience, this replaces
[xonotic/darkplaces.git] / server.h
index 64153e565c4adeba6e163acaa7d599a10bef0284..5d399607ca1ea7717ded40dce8dbd944f0e160a3 100644 (file)
--- a/server.h
+++ b/server.h
@@ -589,8 +589,8 @@ void SV_GetEntityMatrix(prvm_prog_t *prog, prvm_edict_t *ent, matrix4x4_t *out,
 
 void SV_StartThread(void);
 void SV_StopThread(void);
-void SV_LockThreadMutex(void);
-void SV_UnlockThreadMutex(void);
+#define SV_LockThreadMutex() (svs.threaded ? Thread_LockMutex(svs.threadmutex),1 : 0)
+#define SV_UnlockThreadMutex() (svs.threaded ? Thread_UnlockMutex(svs.threadmutex),1 : 0)
 
 void VM_CustomStats_Clear(void);
 void VM_SV_UpdateCustomStats(client_t *client, prvm_edict_t *ent, sizebuf_t *msg, int *stats);