Hi Ranal, Each loadable TinyLD app is designed to be single-threaded. In fact, TinyLD does not expose any of the thread-manipulating commands.
Thanks Mike On Jan 3, 2011, at 8:07 PM, ranal fernando wrote: > > hi all, > > i have another question. > > if i create a C app (in capp folder) having 2 threads, and load it with > TinyLD, will TinyLD create only one thread for both the threads in the capp? > > because no matter how many threads you have in the capp you get only one > thread ID (type of tosthread_t) in the > > DynamicLoader.loadFromMemoryDone event. > > > Am i correct? Are the tosthread_t in the capp different from what you get in > the main program? ( which has the DynamicLoader.loadFromMemoryDone event) how > can i map those two values? > > > thanks > > fernando > > > > > On Sat, Jan 1, 2011 at 8:37 AM, ranal fernando <[email protected]> wrote: > Thank you very much > > I'll try changing those. > > > Subject: Re: [Tinyos-help] TOSThreads & TinyLD > > From: [email protected] > > Date: Fri, 31 Dec 2010 18:17:48 -0800 > > CC: [email protected] > > To: [email protected] > > > > > Hi, > > > > There are two TinyLD files that you need to update. > > > > 1.) tos/lib/tosthreads/lib/tinyld/tosthread_slcs_types.h > > 2.) tools/tinyos/tosthreads/tosthreads_standard_api.py > > > > Thanks > > > > Mike > > > > On Dec 30, 2010, at 7:45 PM, ranal fernando wrote: > > > > > Hi all, > > > > > > > > > I noticed a strange behavior in TOSThreads radio interface. > > > > > > > > > > > > I added a new procedure in the CAMRadioP.nc. I also changed the > > > tosthread_amradio.h accordingly. > > > > > > > > > > > > The following is just an example of an added procedure call. > > > > > > > > > > > > error_t test() @C() AT_SPONTANEOUS {…} > > > > > > > > > > > > The C based application gets compiled properly. When I install the > > > application to the mote using > > > > > > > > > > > > Make telosb install cthreads > > > > > > > > > > > > It works properly. > > > > > > > > > > > > But when I load the same application using the DynamicLoader in TinyLD it > > > does not work properly. > > > > > > > > > > > > Am I missing something? Do I need to make changes in some other place > > > other than CAMRadioP.nc & tosthread_amradio.h? > > > > > > > > > > > > Any help would be greatly appreciated. > > > > > > > > > > > > Fernando > > > > > > _______________________________________________ > > > Tinyos-help mailing list > > > [email protected] > > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > Subject: Re: [Tinyos-help] TOSThreads & TinyLD > > From: [email protected] > > Date: Fri, 31 Dec 2010 18:17:48 -0800 > > CC: [email protected] > > To: [email protected] > > > > Hi, > > > > There are two TinyLD files that you need to update. > > > > 1.) tos/lib/tosthreads/lib/tinyld/tosthread_slcs_types.h > > 2.) tools/tinyos/tosthreads/tosthreads_standard_api.py > > > > Thanks > > > > Mike > > > > On Dec 30, 2010, at 7:45 PM, ranal fernando wrote: > > > > > Hi all, > > > > > > > > > I noticed a strange behavior in TOSThreads radio interface. > > > > > > > > > > > > I added a new procedure in the CAMRadioP.nc. I also changed the > > > tosthread_amradio.h accordingly. > > > > > > > > > > > > The following is just an example of an added procedure call. > > > > > > > > > > > > error_t test() @C() AT_SPONTANEOUS {…} > > > > > > > > > > > > The C based application gets compiled properly. When I install the > > > application to the mote using > > > > > > > > > > > > Make telosb install cthreads > > > > > > > > > > > > It works properly. > > > > > > > > > > > > But when I load the same application using the DynamicLoader in TinyLD it > > > does not work properly. > > > > > > > > > > > > Am I missing something? Do I need to make changes in some other place > > > other than CAMRadioP.nc & tosthread_amradio.h? > > > > > > > > > > > > Any help would be greatly appreciated. > > > > > > > > > > > > Fernando > > > > > > _______________________________________________ > > > Tinyos-help mailing list > > > [email protected] > > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
