[Qt-interest] Multiple up/down with QSemaphore

Sean Harmer sean.harmer at maps-technology.com
Tue Apr 5 22:16:48 CEST 2011


On Tuesday 05 April 2011 16:50:36 DiogoLR wrote:
> Exactly like Atlant Schmidt said... I'm trying to acquire multiple
> independent resources each guarded by unique semaphores.
> 
> Thanks for the explanation, Atlant :).
> 
> Regards,
> 
> Diogo.
> 
> 
> 2011/4/5 Atlant Schmidt <aschmidt at dekaresearch.com>
> 
> > Sean:
> >  I'm having trouble mapping your reply to DiogoLR's question.
> >  He's not trying to acquire multiple resources guarded by a
> >  single semaphore; instead, he seems to be trying to acquire
> >  multiple independent resources each guarded by unique
> >  semaphores (in Linux/Unix terms, a "semaphore set").
> >  
> >  He could build this functionality, of course, by guarding
> >  a bunch of semaphore-like objects (perhaps even QSemaphores)
> >  with a Mutex.

Ah sorry. I misunderstood the question. Bad night up with the kids. Need more 
sleep ;-)

Apologies.

Sean




More information about the Qt-interest-old mailing list