From: cbarber@bbn.com (Christopher Barber)
Subject: Re: Race condition during object destruction. How to avoid?
Date: 19 May 1994 15:29:14 GMT [thread overview]
Message-ID: <CBARBER.94May19112914@apricot.bbn.com> (raw)
In-Reply-To: daniels@biles.com's message of Wed, 18 May 1994 18:18:58 GMT
>>>>> "BD" == Brad Daniels <daniels@biles.com> writes:
BD> I have a class which models pthread condition variables. I'd like
BD> to make a subclass of that class which will wake up at fixed
BD> intervals regardless of other conditions. To achieve this, I tried
BD> making a class with an associated thread which periodically signals
BD> the condition variable to wake up (after forcing the predicate to
BD> be true)....
Why not save yourself a lot of trouble and implement the wait() call on the
subclass using pthread_cond_timedwait()?
- Chris
--
Christopher Barber
(cbarber@bbn.com)
next prev parent reply other threads:[~1994-05-19 15:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-05-18 18:18 Race condition during object destruction. How to avoid? Brad Daniels
1994-05-19 15:29 ` Christopher Barber [this message]
1994-05-19 20:48 ` Brad Daniels
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox