From: MenTaLguY Date: 2007-12-11T08:21:55+09:00 Subject: Re: Compliment to rb_thread_blocking_region() ? On Tue, 11 Dec 2007 07:49:08 +0900, MenTaLguY wrote: > For libevent specifically, you should consider using event_loop() rather > than event_dispatch(); your C callback could then simply record the work item > somewhere which will be accessible after event_loop() returns, and the > actual work could be performed once you are back in the interpreter. That avoids > the need for a work queue and the associated extra context > switches/synchronization. And, of course I mean event_base_loop()/event_base_dispatch(). :) -mental