nim_duilib/ui_components/modal_wnd/async_do_modal.cpp

18 lines
312 B
C++
Raw Normal View History

2019-04-19 17:19:57 +08:00
#include "stdafx.h"
#include "async_do_modal.h"
#include "async_modal_runner.h"
namespace nim_comp {
2019-04-19 17:19:57 +08:00
bool AsyncDoModal(ModalWndBase *dlg)
{
return AsyncModalRunnerManager::GetInstance()->DoModal(dlg);
}
void CancelAllAsyncModalDialogs()
{
AsyncModalRunnerManager::GetInstance()->CancelAllThreads();
}
}