Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #1520

Re: Condition variable implementation...

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 <Gerald.Breuer@googlemail.com>
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 <kp7m2m$vtp$1@speranza.aioe.org> (permalink)
References <kp7l2g$6ef$1@dont-email.me> <kp7l3l$6ef$2@dont-email.me> <kp7la7$6ef$3@dont-email.me>
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

Show key headers only | View raw


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).

Back to comp.programming.threads | Previous | Next | Find similar


Thread

Re: Condition variable implementation... Gerald Breuer <Gerald.Breuer@googlemail.com> - 2013-06-11 19:17 +0200

csiph-web