[haiku] Re: Any plans for pthread support?

  • From: Colin Günther <coling@xxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Wed, 23 Sep 2009 16:48:41 +0200

Rene Gollent schrieb:
On Wed, Sep 23, 2009 at 9:28 AM, Colin Günther <coling@xxxxxx> wrote:
    status = acquire_sem_etc(cvp->sema, 1, B_ABSOLUTE_TIMEOUT,
absoluteTimeout);

This is a bug:
       } while (B_INTERRUPTED && (system_time() < absoluteTimeout));

Mmh, I can't see the bug. Would you mind to clarify?

Presumably that should be while (status == B_INTERRUPTED &&
system_time() < absoluteTimeout)

Regards,

Rene

Yeah, now I go out and buy me some glasses.

Colin

Other related posts: