Re: Is semaphore signaling in OpenMCL Threadsafe?



"David L. Rager" <ragerdl@xxxxxxxxxxxxx> writes:
> Each semaphore is stored in a global semaphore-alist, where the key is
> the semaphore number. There is a lock to prevent concurrent access to
> this global. The global semaphore alist was reset with all semaphores
> holding values of 0 before execution.

I would trace this alist. Perhaps you have the same semaphore as value
for both key 3 and key 5.

(Irrelevant to your problem:) Why don't you use a vector?

Not much can be said without the sources...

--
__Pascal Bourguignon__ http://www.informatimago.com/

Nobody can fix the economy. Nobody can be trusted with their finger
on the button. Nobody's perfect. VOTE FOR NOBODY.
.