On Fri, 2014-10-24 at 14:08 -0600, FAU wrote: > Hello, > > I'm curious about Iolib. I've been looking into ways to do multiplexing > IO in common lisp. I know how I would do that in traditional (Unix) C > via non-blocking IO and select(). > > I've admittedly not read the manual as of yet. It seems that Iolib has > something like an event loop which probably invokes user specified > callbacks for IO ready streams/fds. > > Now I'm wondering, is the event loop thread safe?
No, you'll have to come up with your own locking. > Is there still a way > to use something like the traditional select() call (which basically > means not to use the event loop and determine the readiness of > stream/fds the old fashioned way)? You mean, by returning a list of events ? No, although one thing you could try is perform one-shot runs of the event loop, after which the loop exits and you have to start it again. IOW, run your own loop outside the multiplexer loop. -- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Iolib-devel mailing list [email protected] http://mailman.common-lisp.net/cgi-bin/mailman/listinfo/iolib-devel
