Boost logo

Boost :

Subject: Re: [boost] [Interprocess::Semaphore] Deadlock on more producers - one consumer problem
From: James Mansion (james_at_[hidden])
Date: 2009-06-20 03:17:02

Ion Gaztañaga wrote:
> No, the API just allows V(1). And VxN operations is what I'm
> suggesting if N resources are freed by the producer. Is it usual to
> have V(N) in semaphores? I have never seen it.
Well, the Windows ReleaseSemaphore operation does off the top of my head.

Also the older semop feature on UNIX (NB not sem_post).

 From opengroup:

    If /sem_op/ is a positive integer and the calling process has alter
permission, the value of /sem_op/ is added to /semval/


Boost list run by bdawes at, gregod at, cpdaniel at, john at