]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - server.h
use the correct sRGB conversion for the gamma ramps
[xonotic/darkplaces.git] / server.h
index 6eb60579bb3b591f01d2e1719bc7a8df5facf55a..d62a736683683a5591059b0a0b72331d1812c1a2 100644 (file)
--- a/server.h
+++ b/server.h
@@ -53,6 +53,12 @@ typedef struct server_static_s
        unsigned char *csqc_progdata;
        size_t csqc_progsize_deflated;
        unsigned char *csqc_progdata_deflated;
+
+       // independent server thread (when running client)
+       qboolean threaded; // true if server is running on separate thread
+       qboolean volatile threadstop;
+       void *threadmutex;
+       void *thread;
 } server_static_t;
 
 //=============================================================================
@@ -584,5 +590,10 @@ const char *Host_TimingReport(void); ///< for output in Host_Status_f
 int SV_GetPitchSign(prvm_edict_t *ent);
 void SV_GetEntityMatrix (prvm_edict_t *ent, matrix4x4_t *out, qboolean viewmatrix);
 
+void SV_StartThread(void);
+void SV_StopThread(void);
+void SV_LockThreadMutex(void);
+void SV_UnlockThreadMutex(void);
+
 #endif