[so] Tema 2 - Ultilizare semafoare windows
Daniel Baluta
daniel.baluta at gmail.com
Thu Apr 17 23:33:15 EEST 2008
2008/4/17 George Dita <george.dita at gmail.com>:
> Am intampinat o problema la folosirea functiei pentru decrementarea
> semaforului. Am inteles din laborator ca trebuie folosit:
>
> WaitForSingleObject(
> hSemaphore, //HANDLE-ul asociat semaforului
>
> 0L); //nu astept deloc (time-out de 0)
>
>
> Daca doresc sa astepte pana poate face o decrementare pun la asteptare
> INFINITE? Mi se comporta ciudat si nu stiu de ce. Ma intrebam daca asta ar
> putea fi problema.
>
da.
cu INFINITE nu iti merge?
>
> --
> George Dita
> _______________________________________________
> 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/20080417/deb15fbd/attachment.htm
More information about the so
mailing list