[*] AuIO harden
This commit is contained in:
parent
8fc20bcc11
commit
3bae761e50
@ -164,6 +164,11 @@ namespace Aurora::IO
|
||||
|
||||
bool IOPipeWork::End()
|
||||
{
|
||||
if (!this->iStartTickMS_)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (this->parent_->parent_->CheckThread())
|
||||
{
|
||||
TerminateOnThread();
|
||||
|
@ -80,11 +80,13 @@ namespace Aurora::IO
|
||||
|
||||
AUKN_SYM AuSPtr<IIOWatachableIOLoopSource> NewWaitableLoopSource(const AuSPtr<Loop::ILoopSource> &pSource)
|
||||
{
|
||||
SysCheckArgNotNull(pSource, {});
|
||||
SysCheckRetExpNotNullMemory(AuMakeShared<IOWatachableIOLoopSource>(pSource), {});
|
||||
}
|
||||
|
||||
AUKN_SYM AuSPtr<IIOWatachableIOLoopSource> NewWaitableLoopSourceEx(const AuSPtr<Loop::ILoopSource> &pSource, AuUInt32 dwIoTimeoutMS)
|
||||
{
|
||||
SysCheckArgNotNull(pSource, {});
|
||||
SysCheckRetExpNotNullMemory(AuMakeShared<IOWatachableIOLoopSource>(pSource, dwIoTimeoutMS), {});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user