X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Fsystem%2FDynamicThreadP.nc;h=de03f20dda0c6c04ebb1c1c96405fa3d549cd4be;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=cb4cd804a62745c524e9563aae2ddaa724df2ba1;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400;p=tinyos-2.x.git diff --git a/tos/lib/tosthreads/system/DynamicThreadP.nc b/tos/lib/tosthreads/system/DynamicThreadP.nc index cb4cd804..de03f20d 100644 --- a/tos/lib/tosthreads/system/DynamicThreadP.nc +++ b/tos/lib/tosthreads/system/DynamicThreadP.nc @@ -137,11 +137,18 @@ happy: command error_t DynamicThread.sleep(uint32_t milli) { return call ThreadSleep.sleep(milli); } + command error_t DynamicThread.join(tosthread_t* t) { + return call ThreadScheduler.joinThread(*t); + } async command thread_t* ThreadInfo.get[uint8_t id]() { atomic return thread_info[id - TOSTHREAD_NUM_STATIC_THREADS]; } + async command error_t ThreadInfo.reset[uint8_t id]() { + return FAIL; + } + async event void ThreadCleanup.cleanup[uint8_t id]() { signal ThreadNotification.aboutToDestroy[id](); atomic {