[scheduler] move schedulers into otInstance (#1997)

This commit is contained in:
Buke Po
2017-07-15 07:23:22 +08:00
committed by Jonathan Hui
parent 028368e4ee
commit e14598c680
44 changed files with 96 additions and 150 deletions
+5 -1
View File
@@ -66,7 +66,7 @@ ot::MeshForwarder &otGetMeshForwarder(void)
ot::TaskletScheduler &otGetTaskletScheduler(void)
{
return sInstance->mIp6.mTaskletScheduler;
return sInstance->mTaskletScheduler;
}
ot::Ip6::Ip6 &otGetIp6(void)
@@ -82,6 +82,10 @@ otInstance::otInstance(void) :
mActiveScanCallbackContext(NULL),
mEnergyScanCallback(NULL),
mEnergyScanCallbackContext(NULL),
mTimerMilliScheduler(this),
#if OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER
mTimerMicroScheduler(this),
#endif
mThreadNetif(mIp6)
#if OPENTHREAD_ENABLE_RAW_LINK_API
, mLinkRaw(*this)