Re: [fpc-pascal] notify and notigyall

2007-08-24 Thread Jonas Maebe
On 24 Aug 2007, at 13:17, Vinzent Hoefler wrote: On Friday 24 August 2007 08:53, Jonas Maebe wrote: tbasicrtlevent for Unix is still not based on condition variables, because Windows events are persistent and condition variables are not. Call me stupid, If you insist :) but I was under

Re: [fpc-pascal] notify and notigyall

2007-08-24 Thread Vinzent Hoefler
On Friday 24 August 2007 08:53, Jonas Maebe wrote: > tbasicrtlevent for Unix is still not based on condition variables, > because Windows events are persistent and condition variables are > not. Call me stupid, but I was under the impression that this has been fixed by inserting the "IsSet" memb

Re: [fpc-pascal] notify and notigyall

2007-08-24 Thread Jonas Maebe
On 24 Aug 2007, at 10:41, Michael Van Canneyt wrote: 2) why the SyncObjs tEvent objects uses those semaphore stuff instead of the fixed RTLEvents. It's based on the Windows implementation, as far as I know ? The Windows "implementation" just aliases the standard Windows API primitives f

Re: [fpc-pascal] notify and notigyall

2007-08-24 Thread Jonas Maebe
On 24 Aug 2007, at 07:55, Vinzent Hoefler wrote: 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. Someone s

Re: [fpc-pascal] notify and notigyall

2007-08-24 Thread Michael Van Canneyt
On Fri, 24 Aug 2007, Vinzent Hoefler wrote: > On Friday 24 August 2007 07:55, Michael Van Canneyt wrote: > > 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 diffe

Re: [fpc-pascal] notify and notigyall

2007-08-24 Thread Vinzent Hoefler
On Friday 24 August 2007 07:55, Michael Van Canneyt wrote: > 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

Re: [fpc-pascal] notify and notigyall

2007-08-24 Thread Michael Van Canneyt
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 >

Re: [fpc-pascal] notify and notigyall

2007-08-23 Thread Vinzent Hoefler
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/M

Re: [fpc-pascal] notify and notigyall

2007-08-23 Thread Vinzent Hoefler
On Thursday 23 August 2007 17:02, ik wrote: > Hi, > > Is there an equivalent for Java's sleep and notify/notifyAll in FPC's > rtl ? The "SetEvent" methods of "RtlWaitEvent" (notify) and "RTLSimpleEvent" (notify all), IIRC. Vinzent. ___ fpc-pascal mai

Re: [fpc-pascal] notify and notigyall

2007-08-23 Thread Jonas Maebe
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 y

Re: [fpc-pascal] notify and notigyall

2007-08-23 Thread Luca Olivetti
En/na Mattias Gaertner ha escrit: Maybe you can try http://www.freepascal.org/docs-html/rtl/system/rtleventwaitfor.html If this works, you can write a small example for the wiki: http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial How are these different to the TEventObjec

Re: [fpc-pascal] notify and notigyall

2007-08-23 Thread ik
On 8/23/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote: > On Thu, 23 Aug 2007 21:32:41 +0300 > ik <[EMAIL PROTECTED]> wrote: > > > On 8/23/07, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > > > Is there an equivalent for Java's sleep and notify/notifyAll in > > > > FPC's rtl ? > > > > > > I'm so

Re: [fpc-pascal] notify and notigyall

2007-08-23 Thread Mattias Gaertner
On Thu, 23 Aug 2007 21:32:41 +0300 ik <[EMAIL PROTECTED]> wrote: > On 8/23/07, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > > Is there an equivalent for Java's sleep and notify/notifyAll in > > > FPC's rtl ? > > > > I'm sorry. I don't know Java that well. Maybe it is easier to > > describe th

Re: [fpc-pascal] notify and notigyall

2007-08-23 Thread ik
On 8/23/07, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > Is there an equivalent for Java's sleep and notify/notifyAll in FPC's rtl ? > > I'm sorry. I don't know Java that well. Maybe it is easier to describe the > exact behaviour that you want instead of drawing a parallel Lets say I have syn

Re: [fpc-pascal] notify and notigyall

2007-08-23 Thread Marco van de Voort
> Is there an equivalent for Java's sleep and notify/notifyAll in FPC's rtl ? I'm sorry. I don't know Java that well. Maybe it is easier to describe the exact behaviour that you want instead of drawing a parallel ___ fpc-pascal maillist - fpc-pascal@li

[fpc-pascal] notify and notigyall

2007-08-23 Thread ik
Hi, Is there an equivalent for Java's sleep and notify/notifyAll in FPC's rtl ? Thanks, Ido -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal