[*] 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();
|
||||
|
@ -78,13 +78,15 @@ namespace Aurora::IO
|
||||
return this->dwIoTimeoutMS;
|
||||
}
|
||||
|
||||
AUKN_SYM AuSPtr<IIOWatachableIOLoopSource> NewWaitableLoopSource(const AuSPtr<Loop::ILoopSource>&pSource)
|
||||
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)
|
||||
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