Event extension to TinyTcl - or maybe Jim
- From: "dcd" <cdenson@xxxxxxxxxxxx>
- Date: 30 Oct 2006 12:42:26 -0800
I have an event extension to tinytcl that is based on initial work for
Jim by Salvatore. It probably would be happier in Jim, but I wrote it
to the old style tinytcl interface. I'd like to give this back, but I'm
not sure how to do it. Anyone have any ideas? What I've implemented is,
for the most part, a single command called event with the following
syntax:
event add timer <delay> <script>
event add <filehandle> [r|w] <script>
event poll
event wait
event remove [<eventid> | all]
Event poll and event wait are exactly analogous to update and vwait,
except that I don't wait on a variable to change to exit the event
loop. If a script wants to exit the event loop it can call 'event
remove all'.
This works on a linux 2.6.5 kernel.
craig
.
- Prev by Date: Re: XOTcl + Actiweb
- Next by Date: Re: Syntax, expressiveness and the beauty of Tcl
- Previous by thread: Need some guidance -- starting with Tile 0.7.8 ...
- Next by thread: Wrapping a Windows DLL with SWIG/TEA3/whatever
- Index(es):
Relevant Pages
|