CtrlCore: Massive fix of MT, Draw: Fixed DrawingDraw::Create for case when tehere are some data in DrawingDraw

git-svn-id: svn://ultimatepp.org/upp/trunk@1506 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-08-13 13:40:54 +00:00
parent 8c030b0c5a
commit 1205935960
16 changed files with 281 additions and 93 deletions

View file

@ -10,12 +10,18 @@
NAMESPACE_UPP
typedef DrawLock GuiLock;
#ifdef _MULTITHREADED
void EnterGuiMutex();
void LeaveGuiMutex();
#else
inline void EnterGuiMutex() {}
inline void LeaveGuiMutex() {}
#endif
inline void EnterGuiMutex() { EnterGMutex(); }
inline void EnterGuiMutex(int n) { EnterGMutex(n); }
inline void LeaveGuiMutex() { LeaveGMutex(); }
inline int LeaveGuiMutexAll() { return LeaveGMutexAll(); }
struct GuiLock {
GuiLock() { EnterGuiMutex(); }
~GuiLock() { LeaveGuiMutex(); }
};
bool ScreenInPaletteMode();
Size GetScreenSize();