Is there support for semaphores?
the following should work
you need:
- a WriterSemaphore initialized at 1
(the writer semaphore is like the CriticalSection, it may be better
named ExclusiveSemaphore)
- a ReaderSemaphore initalized at 0
* when writing you will do this
- decrease the WriterSema
On 28 Aug 2009, at 14:43, Graeme Geldenhuys wrote:
Graeme Geldenhuys wrote:
As I mentioned in the fpc-pascal mailing list. The current
implementation is wrong and is actually the equivalent of Delphi's
TSimpleRWSync class.
Regarding Florian's comment in the bug tracker. I was using Sleep(10
Graeme Geldenhuys wrote:
>
> As I mentioned in the fpc-pascal mailing list. The current
> implementation is wrong and is actually the equivalent of Delphi's
> TSimpleRWSync class.
Regarding Florian's comment in the bug tracker. I was using Sleep(100)
which Florian says will slow down the class a
Hi,
As I mentioned in the fpc-pascal mailing list. The current
implementation is wrong and is actually the equivalent of Delphi's
TSimpleRWSync class.
I submitted a patch to Mantis which has a new implementation. I also
rename the old implementation to TSimplRWSync. I also changed the
instantiati