On Mon, Aug 19, 2013 at 03:49:53PM +0200, Michael Schnell wrote: > On 08/19/2013 02:27 PM, Henry Vermaak wrote: > >A simple way to do this is with the self-pipe trick. > I suppose in Windows we would use a message. In Linux I would prefer > a semaphore or - supposedly best if really usable here - > pthread.mutex as same uses FUTEX whenever the underlying arch allows > for and thus the overhead is as small as possible, because there is > no OS call necessary when scheduling an event and when an event is > already scheduled at the time the previous is done.
That makes no sense. How do you suppose that a mutex in linux will wake up an event loop? Henry _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel