Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: Gerald Breuer Newsgroups: comp.programming.threads Subject: Re: Condition variable implementation... Date: Tue, 11 Jun 2013 19:17:03 +0200 Organization: Aioe.org NNTP Server Lines: 12 Message-ID: References: NNTP-Posting-Host: 3ARoSbdlG27XbNSnjW1WVQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.programming.threads:1520 Am 11.06.2013 22:08, schrieb aminer: > > > I have another question: > > I want to support a timed wait, can you please tell me > how to modify the source code in this paper to support > a timed wait (for example in the Windows OS) ? That's not possible by deriving from this code. It's possible by baving a single global thread which wakes up the threads wich want to have a timed wait from a queue (best from a min-heap).