X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Fcsystem%2FCThreadP.nc;h=18026f17f6faf6d6e461b2f2e402262253824082;hp=52f160131a4dd1a4df8bcb477e8b19cfc21912a2;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 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); + } }