mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
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:
parent
b9cd98a689
commit
a5cc4e2902
17 changed files with 71 additions and 252 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue