|
|
@ -213,6 +213,16 @@ namespace NLMISC
|
|
|
|
return _ThreadMainFiber.getPointer();
|
|
|
|
return _ThreadMainFiber.getPointer();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void releaseInstance()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (_Instance)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
NLMISC::INelContext::getInstance().releaseSingletonPointer("CCurrentCoTask", _Instance);
|
|
|
|
|
|
|
|
delete _Instance;
|
|
|
|
|
|
|
|
_Instance = NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
NLMISC_SAFE_SINGLETON_IMPL(CCurrentCoTask);
|
|
|
|
NLMISC_SAFE_SINGLETON_IMPL(CCurrentCoTask);
|
|
|
@ -560,5 +570,10 @@ namespace NLMISC
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CCoTask::releaseInstance()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CCurrentCoTask::releaseInstance();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace NLMISC
|
|
|
|
} // namespace NLMISC
|
|
|
|
|
|
|
|
|
|
|
|