Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #5663
| Newsgroups | comp.programming.threads |
|---|---|
| Date | 2020-03-18 18:03 -0700 |
| References | <3AEECEBF.825C18E8@mac.com> |
| Message-ID | <8c1fcae0-19c0-4a35-a210-24e013efff2d@googlegroups.com> (permalink) |
| Subject | Re: pthread_cond_wait waking up spuriously? |
| From | aekkach4444@gmail.com |
Am Dienstag, 1. Mai 2001 21:57:08 UTC+7 schrieb Vincent Predoehl: > I saw this in the man pages for pthread_cond_wait: > > When using condition variables there is always a boolean predicate > involving shared variables associated with each condition wait that is > true if the thread should proceed. Spurious wakeups from the > pthread_cond_wait() or pthread_cond_timedwait() functions may occur. > Since the return from pthread_cond_wait() or pthread_cond_timedwait() > does not imply anything about the value of this predicate, the predicate > should be re-evaluated upon such return. > > Can anyone explain to me why this is so? > > Thanks, > -- > Vincent
Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread
Re: pthread_cond_wait waking up spuriously? aekkach4444@gmail.com - 2020-03-18 18:03 -0700
csiph-web