Re: [q-lang-users] RFC: Conditional syntax
Brought to you by:
agraef
From: Tim H. <q...@st...> - 2006-06-01 13:37:47
|
Albert Graef <Dr....@t-...> writes: > John Cowan wrote: > > Umm, is it out of the question to change "cond" in clib to "condition"? > > Well, if I change that, I'll have to change sem to semaphore, too, for > consistency, and maybe some other pthread ops. Actually that's not a bad > idea. But it will break most of the multimedia examples and maybe other > stuff in the multimedia library, so all of this would have to be fixed. > :( > > > I'm willing to take the plunge, though. So does anyone else use those > thread operations? AFAIK I make very limited use of threading only in my wittering/index.q: | //How to kill a thread | terminate T = cancel T if active T; | = result T otherwise; | | main = TP || insertarticle || sleep 3 || terminate TP || writes output | if [snip] | where TP=thread ping; This code is mostly inactive & bugged atm anyway and doesn't mention `sem' or anything either, so don't worry about me! :) ~Tim -- <http://spodzone.org.uk/> |