29 #include YFM_YSLib_Core_YShell
30 #include YFM_YSLib_Core_YApplication
38 using namespace Messaging;
56 switch(msg.GetMessageID())
60 auto h(FetchTarget<SM_Set>(msg));
66 std::exit(FetchTarget<SM_Quit>(msg));
69 const auto& pr(FetchTarget<SM_Bound>(msg));
70 const auto h_shl(pr.first.lock());
73 h_shl->OnGotMessage(pr.second);
77 FetchTarget<SM_Task>(msg)();
YF_API Application & FetchAppInstance() ynothrow
取应用程序实例。
static void DefShlProc(const Message &)
默认 Shell 处理函数。
_type * get_raw(_type *const &p)
bool IsActive() const
判断 Shell 是否处于激活状态。
bool Switch(shared_ptr< Shell > &) ynothrow
线程切换:若参数非空,和线程空间中当前运行的 Shell 的句柄交换。