threads/asynchronous I/O

"Josh Bronson" <[email protected]> Sat, 22 Apr 2006 12:15:28 -0400
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Is there a way to write thread-safe applications using CLG? for example:

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Threads.html

These functions don't seem to be bound anywhere in CLG.

Asynchronous I/O support would also be handy; is it possible to do that instead?

(for example, http://www.pygtk.org/pygtk2tutorial/sec-MonitoringIO.html)

I'm basically trying to write a jabber/telnet-type client. So I'd like
to wait until input is available from a socket and then update a
text-buffer asynchronously.

I added bindings to the gdk thread functions just to see what would
happen, but I didn't pursue it very far. At any rate, there really
isn't a great way for me to test whether it's actually working, and I
don't know how CLG works. I noticed that you said a main
event-handling loop is never entered explicitly; all events are
handled in "the background." If all the bindings were in place to call
g_threads_enter and g_threads_leave, would they work as expected?

Thanks,
Josh


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642