mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 13:50:28 +00:00
[scheduler] move schedulers into otInstance (#1997)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user