X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Fcsystem%2FCThreadP.nc;h=18026f17f6faf6d6e461b2f2e402262253824082;hb=4f00f40a7c40b8ba3493abc904f895aeba5d7a09;hp=52f160131a4dd1a4df8bcb477e8b19cfc21912a2;hpb=729c2ae97fd4657e60118af9793374124358a925;p=tinyos-2.x.git diff --git a/tos/lib/tosthreads/csystem/CThreadP.nc b/tos/lib/tosthreads/csystem/CThreadP.nc index 52f16013..18026f17 100644 --- a/tos/lib/tosthreads/csystem/CThreadP.nc +++ b/tos/lib/tosthreads/csystem/CThreadP.nc @@ -42,19 +42,22 @@ module CThreadP { } implementation { - error_t tosthread_create(tosthread_t* t, void (*start_routine)(void*), void* arg, uint16_t stack_size) @C() @spontaneous() { + error_t tosthread_create(tosthread_t* t, void (*start_routine)(void*), void* arg, uint16_t stack_size) @C() AT_SPONTANEOUS { return call DynamicThread.create(t, start_routine, arg, stack_size); } - error_t tosthread_destroy(tosthread_t* t) @C() @spontaneous() { + error_t tosthread_destroy(tosthread_t* t) @C() AT_SPONTANEOUS { return call DynamicThread.destroy(t); } - error_t tosthread_pause(tosthread_t* t) @C() @spontaneous() { + error_t tosthread_pause(tosthread_t* t) @C() AT_SPONTANEOUS { return call DynamicThread.pause(t); } - error_t tosthread_resume(tosthread_t* t) @C() @spontaneous() { + error_t tosthread_resume(tosthread_t* t) @C() AT_SPONTANEOUS { return call DynamicThread.resume(t); } - error_t tosthread_sleep(uint32_t milli) @C() @spontaneous() { + error_t tosthread_sleep(uint32_t milli) @C() AT_SPONTANEOUS { return call DynamicThread.sleep(milli); } + error_t tosthread_join(tosthread_t* t) @C() AT_SPONTANEOUS { + return call DynamicThread.join(t); + } }