[fpc-devel] TCustomApplication

Henry Vermaak henry.vermaak at gmail.com
Mon Aug 19 16:31:02 CEST 2013


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



More information about the fpc-devel mailing list