Release 980201
[wine/multimedia.git] / include / tsx11defs.h
blob87396a772724833b4d3faeb06f9559a907bdbe30
1 /*
2 * Thread safe wrappers around X11 calls
4 * Copyright 1998 Kristian Nielsen
5 */
7 #ifndef __WINE_TSX11DEFS_H
8 #define __WINE_TSX11DEFS_H
10 #include "winbase.h"
12 extern CRITICAL_SECTION *TSX11_SectionPtr;
14 extern int TSX11_Init(void);
16 #define X11_LOCK() \
17 (TSX11_SectionPtr ? EnterCriticalSection(TSX11_SectionPtr) : 0)
19 #define X11_UNLOCK() \
20 (TSX11_SectionPtr ? LeaveCriticalSection(TSX11_SectionPtr) : 0)
22 #endif /* __WINE_TSX11DEFS_H */