Hi,
you are correct. I've updated the documentation errors.
Cheers, Fons.
Konstantin Olchanski wrote:
> Hello, there! I am trying to use a TSemaphore and I see following
> errors in the documentation:
>
> 1) Post() method reads: "If any threads are blocked in Wait(), wake one of them up.
> Otherwise increment the value of the semaphore.". This implies that the semaphore
> value is not incremented if a waiting thread as awaken. Code inspection shows
> that the semphore value is always incremented.
>
> 2) The return value for Wait() is not documented. Code inspection shows that
> it probably returns 0 when the semaphore is successfully acquired,
> but it is not obvious what other values may be returned.
>
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers_at_cern.ch Phone: +41 22 7679248 WWW: http://fons.rademakers.org Fax: +41 22 7669640Received on Mon Nov 05 2007 - 01:11:53 CET
This archive was generated by hypermail 2.2.0 : Mon Nov 05 2007 - 17:50:01 CET