X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=cmd.h;h=bb1a84f2f8c8db3bb9b56a938c459a3587fdc173;hb=fae56f5debe83e993f8923fe52a86f27c997ea47;hp=c8bf80ca4b6a1647040d8d716805c2b362b4b22d;hpb=4e863679a571cdf161e7e9a047dc0351e0a5eea6;p=xonotic%2Fdarkplaces.git diff --git a/cmd.h b/cmd.h index c8bf80ca..bb1a84f2 100644 --- a/cmd.h +++ b/cmd.h @@ -37,6 +37,10 @@ The game starts with a Cbuf_AddText ("exec quake.rc\n"); Cbuf_Execute (); #ifndef CMD_H #define CMD_H +extern void *cmd_text_mutex; +#define Cbuf_LockThreadMutex() (void)(cmd_text_mutex ? Thread_LockMutex(cmd_text_mutex) : 0) +#define Cbuf_UnlockThreadMutex() (void)(cmd_text_mutex ? Thread_UnlockMutex(cmd_text_mutex) : 0) + /// allocates an initial text buffer that will grow as needed void Cbuf_Init (void);