[*] Minor include header improvements
This commit is contained in:
parent
994fcb5010
commit
7739652ad3
@ -43,6 +43,31 @@ namespace Aurora::IO::Protocol
|
|||||||
|
|
||||||
struct ProtocolStackDescription
|
struct ProtocolStackDescription
|
||||||
{
|
{
|
||||||
|
inline ProtocolStackDescription(AuUInt uBufferedStreamLength = 128 * 1024) :
|
||||||
|
type(EProtocolStackCreateType::eByBuffered),
|
||||||
|
byBuffered({ uBufferedStreamLength })
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
inline ProtocolStackDescription(const AuSPtr<IIOPipeWork> &pWork,
|
||||||
|
bool bAutoTick = true,
|
||||||
|
bool bKillPipeOnFirstRootLevelFalse = true) :
|
||||||
|
type(EProtocolStackCreateType::eByPipe),
|
||||||
|
byPipe({ pWork, bAutoTick, bKillPipeOnFirstRootLevelFalse })
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
inline ProtocolStackDescription(AuSPtr<IStreamReader> pStreamReader,
|
||||||
|
AuUInt uPreferredFragmentSize = 0,
|
||||||
|
AuUInt uBufferedStreamLength = 128 * 1024) :
|
||||||
|
type(EProtocolStackCreateType::eByBufferedAdhocStream),
|
||||||
|
byBufferedStream({ uBufferedStreamLength, pStreamReader, uPreferredFragmentSize })
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
EProtocolStackCreateType type;
|
EProtocolStackCreateType type;
|
||||||
ProtocolStackByPipe byPipe;
|
ProtocolStackByPipe byPipe;
|
||||||
ProtocolStackByBuffered byBuffered;
|
ProtocolStackByBuffered byBuffered;
|
||||||
|
@ -317,8 +317,8 @@ namespace __audetail
|
|||||||
|
|
||||||
void InitOnceABI::_FinishFailed()
|
void InitOnceABI::_FinishFailed()
|
||||||
{
|
{
|
||||||
AuAtomicUnset(&this->uToken_, 0);
|
|
||||||
AuAtomicSet(&this->uToken_, 2);
|
AuAtomicSet(&this->uToken_, 2);
|
||||||
|
AuAtomicUnset(&this->uToken_, 0);
|
||||||
InitOnceABI::_Wakeup();
|
InitOnceABI::_Wakeup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user