From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,3b3321b91f88c41e X-Google-Attributes: gid109fba,public X-Google-Thread: f678f,3b3321b91f88c41e X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-05-19 08:35:36 PST Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!news2.near.net!info-server.bbn.com!news.bbn.com!cbarber From: cbarber@bbn.com (Christopher Barber) Newsgroups: comp.lang.c++,comp.unix.osf.misc Subject: Re: Race condition during object destruction. How to avoid? Date: 19 May 1994 15:29:14 GMT Organization: Bolt, Beranek and Newman Inc. Message-ID: References: NNTP-Posting-Host: apricot.bbn.com In-reply-to: daniels@biles.com's message of Wed, 18 May 1994 18:18:58 GMT Xref: bga.com comp.lang.c++:15976 comp.unix.osf.misc:548 >>>>> "BD" == Brad Daniels 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)