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


Groups > comp.programming.threads > #1520

Re: Condition variable implementation...

From Gerald Breuer <Gerald.Breuer@googlemail.com>
Newsgroups comp.programming.threads
Subject Re: Condition variable implementation...
Date 2013-06-11 19:17 +0200
Organization Aioe.org NNTP Server
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>

Show all headers | 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