[so] aflarea valorii unui semafor pe windows

Cristina Basescu cristina.basescu at gmail.com
Tue Aug 26 15:33:11 EEST 2008


Mersi pt raspuns, stiam ca se poate afla valoarea semaforului cu
ReleaseCount, insa param de la release tr sa fie o val strict pozitiva si
asta modifica val semaforului. Nu e ceea ce caut.
Am gasit ca exista in ntdll.dll o functie NTQuerySemaphore, am incercat sa o
folosesc si imi intoarce mereu 0.. intrebarea e ar trebui sa mearga functia
aia?

Cristina

2008/8/26 Daniel Baluta <daniel.baluta at gmail.com>

> http://msdn.microsoft.com/en-us/library/ms685071(VS.85).aspx<http://msdn.microsoft.com/en-us/library/ms685071%28VS.85%29.aspx>
>
> Teoretic daca pui  lReleaseCount = 1, atunci PreviousCount-1 ,
> e ceea ce cauti.
>
> Insa nu-ti recomand abordarea asta.
>
> Dan.
>
>
> 2008/8/26 Cristina Basescu <cristina.basescu at gmail.com>:
> > Salut,
> >
> > stie cineva cum se poate afla valorea unui semafor pe windows?
> >
> > Multumesc,
> > Cristina
> >
> > _______________________________________________
> > so mailing list
> > so at cursuri.cs.pub.ro
> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> >
> >
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080826/f2441438/attachment.htm 


More information about the so mailing list