CtrlCore: New MT rules, window creation and event loop banned in non-main thread (win32 implementation)

git-svn-id: svn://ultimatepp.org/upp/trunk@6169 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-07-06 11:51:28 +00:00
parent b9cd98a689
commit a5cc4e2902
17 changed files with 71 additions and 252 deletions

View file

@ -7,12 +7,6 @@ NAMESPACE_UPP
#define LLOG(x) // DLOG(x)
void Ctrl::Create(Ctrl *owner, bool popup)
{
LLOG("Create Call");
Call(callback2(this, &Ctrl::Create0, owner, popup));
}
void Ctrl::Create0(Ctrl *owner, bool popup)
{
GuiLock __;
ASSERT(IsMainThread());
@ -82,7 +76,7 @@ void Ctrl::Create0(Ctrl *owner, bool popup)
activeCtrl = this;
}
void Ctrl::WndDestroy0()
void Ctrl::WndDestroy()
{
GuiLock __;
LLOG("WndDestroy " << Name());