Oct 02, 2013; 14:26
John Morris
Lasso9 Thread questions
Because of my previous question, I have decided that I need to learn more about threads.
My limited knowledge=85 feel free to correct me if I have it wrong.
When you define a thread, I can see that the thread was created because I can see that the "sys_getthreadcount" tag has been incremented.
Also I noticed that you don't have to call the thread, defining it actually runs it.
Here is my 1st thread:
define my_first_thread => thread {
data public myDate = date
public getDate() => {
return .myDate
}
public active_tick => {
.myDate = date;
return 1
}
}
once defined it has a variable names myDate with the value of the currentDateTime
because of the active_tick, every second the variable myDate gets updated to the currentDateTime.
my_first_thread->getDate();
This returns myDate variable.
This is as far as I have gotten.
So here are some questions:
How can I kill a thread?
Can I call a thread by name or ID?
if I redefine my thread with the same name, the "sys_getthreadcount" is incremented, so did I overwrite the original thread with the same name?
How can I tell if a thread is running?
Can I kill my older threads (besides restarting the Lasso instance)?
Thanks
- John Morris
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Oct 02, 2013; 16:28
Brad Lindsay
Re: Lasso9 Thread questions