mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
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:
parent
8c030b0c5a
commit
1205935960
16 changed files with 281 additions and 93 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue