[fpc-pascal] Counting semaphore for free pascal
Serguei TARASSOV
serge at arbinada.com
Wed Jul 29 16:47:56 CEST 2015
On 29/07/2015 15:44, fpc-pascal-request at lists.freepascal.org wrote:
> Date: Wed, 29 Jul 2015 13:10:23 +0200
> From: kapibara<kapibara.pas at aol.com>
> To:fpc-pascal at lists.freepascal.org
> Subject: Re: [fpc-pascal] Counting semaphore for free pascal
> Message-ID:<55B8B49F.1070404 at aol.com>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> Hi all,
>
> @Serguei Thanks for your reply. What you write is probably right, but
> let me explain the problem.
Well, the terminology doesn't matter, I'm afraid to start some flood, so
forget it.
> Reason I wrote is because I have a feeling the code I wrote could be
> improved, or implemented differently altogether.
I see you're using two concepts of synchronization (semaphore and
events) at the same time.
Maybe better to separate them?
It is not clear why use events to limit thread access to service.
Regards,
Serguei
More information about the fpc-pascal
mailing list