[fpc-pascal] notify and notigyall
Michael Van Canneyt
michael at freepascal.org
Fri Aug 24 09:55:03 CEST 2007
On Fri, 24 Aug 2007, Vinzent Hoefler wrote:
> On Thursday 23 August 2007 19:47, Jonas Maebe wrote:
> > On 23 Aug 2007, at 21:29, Luca Olivetti wrote:
> > > How are these different to the TEventObject,TSimpleEvent classes in
> > > syncobjs? Just curious, since I usually do with syncobjs, and I
> > > don't see a big difference between MyEvent.SetEvent/MyEvent.WaitFor
> > > and RTLEventSetEvent/RTLEventWaitFor
> >
> > If you look at the source of syncobjs, you'll notice teventobject is
> > just an OO coat for tbasicrtlevent.
>
> Last time I looked this is only true for Win32, the Unix version seems
> to be very different and is implemented with semaphores. Is there a
> reason why those routines are not simply based POSIX condition
> variables?
Yes: a single source base. All 'basic' threading routines are in the system
unit, all the rest is based on that.
Michael.
More information about the fpc-pascal
mailing list