[fpc-pascal] Semaphore problems

Vinzent Hoefler JeLlyFish.software at gmx.net
Mon Jul 24 16:19:44 CEST 2006


On Monday 24 July 2006 14:09, Michael Van Canneyt wrote:
> On Mon, 24 Jul 2006, Vinzent Hoefler wrote:
> > On Monday 24 July 2006 13:34, Marco van de Voort wrote:
> >>> When I run the Unit Tests and create a single Lock and the Unlock
> >>> it, all works fine.  If I then iterrate that test by creating 10
> >>> locks and then call unlock 10 times, the Unit Tests freeze on the
> >>> following line with the second iteration:
> >>
> >> Sounds like some recursion property is not set.
> >
> > I don't think, semaphores have recursion properties.
>
> They do, in some implementations.

Ok, granted. :) But not in POSIX, AFAICS.

And they were never designed that way. I think, that's why someone 
invented the mutex. ;)


Vinzent.




More information about the fpc-pascal mailing list