At Sat, 9 Nov 2013 18:21:51 +0100,
Samuel Thibault wrote:
> > +         pthread_spin_lock (&lock);
> > +         totalthreads--;
> > +         nreqthreads--;
> > +         pthread_spin_unlock (&lock);

It might be a good idea use atomic operations instead of the spin lock
(which is what the spin lock is using behind the scenes anyways).

Neal

Reply via email to