Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Doubt is not a pleasant condition, but certainty is absurd. -- Voltaire


devel / comp.unix.programmer / Re: Whats the point of pthread_cond_broadcast() ?

SubjectAuthor
* Whats the point of pthread_cond_broadcast() ?Muttley
+* Re: Whats the point of pthread_cond_broadcast() ?Nicolas George
|`* Re: Whats the point of pthread_cond_broadcast() ?Muttley
| `* Re: Whats the point of pthread_cond_broadcast() ?Nicolas George
|  `- Re: Whats the point of pthread_cond_broadcast() ?Muttley
+* Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
|`* Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
| `- Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
+* Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
|`* Re: Whats the point of pthread_cond_broadcast() ?Muttley
| `* Re: Whats the point of pthread_cond_broadcast() ?Nicolas George
|  +* Re: Whats the point of pthread_cond_broadcast() ?Muttley
|  |`- Re: Whats the point of pthread_cond_broadcast() ?Nicolas George
|  `- Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
`* Re: Whats the point of pthread_cond_broadcast() ?Gary R. Schmidt
 `* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  +* Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |`* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  | +* Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  | |`- Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  | `* Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
  |  +* Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |  |`* Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |  | +- Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |  | `- Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
  |  `* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |   `* Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |    `* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     +* Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |     |`* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | +* Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |     | |`* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | | +* Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |     | | |+* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | | ||`* Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |     | | || `* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | | ||  +* Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |     | | ||  |`* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | | ||  | `* Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |     | | ||  |  `* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | | ||  |   +* Re: Whats the point of pthread_cond_broadcast() ?Nicolas George
  |     | | ||  |   |`* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | | ||  |   | `* Re: Whats the point of pthread_cond_broadcast() ?Nicolas George
  |     | | ||  |   |  `- Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | | ||  |   `- Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |     | | ||  `- Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |     | | |`* Re: Whats the point of pthread_cond_broadcast() ?Nicolas George
  |     | | | `* Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |     | | |  `* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | | |   `- Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |     | | `* Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
  |     | |  +* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | |  |`* Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
  |     | |  | `* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | |  |  +- Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |     | |  |  `- Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
  |     | |  `* Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |     | |   `- Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |     | +- Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |     | `- Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
  |     +- Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |     `* Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
  |      `* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |       +* Re: Whats the point of pthread_cond_broadcast() ?Gary R. Schmidt
  |       |`* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |       | `- Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |       `* Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
  |        `* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |         +- Re: Whats the point of pthread_cond_broadcast() ?Rainer Weikusat
  |         `* Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
  |          `* Re: Whats the point of pthread_cond_broadcast() ?Muttley
  |           `* Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
  |            `* Re: Whats the point of pthread_cond_broadcast() ?Scott Lurndal
  |             `- Re: Whats the point of pthread_cond_broadcast() ?Muttley
  `* Re: Whats the point of pthread_cond_broadcast() ?Kaz Kylheku
   `- Re: Whats the point of pthread_cond_broadcast() ?Muttley

Pages:1234
Re: Whats the point of pthread_cond_broadcast() ?

<tskrq8$375rd$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17525&group=comp.unix.programmer#17525

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: Whats the point of pthread_cond_broadcast() ?
Date: Thu, 16 Feb 2023 09:08:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <tskrq8$375rd$1@dont-email.me>
References: <trqgmc$312l3$1@dont-email.me> <y3vEL.624380$iU59.162684@fx14.iad> <trtviq$3qo84$1@dont-email.me> <20230207110711.41@kylheku.com> <trvpl0$48dj$1@dont-email.me> <87k00s6w9c.fsf@doppelsaurus.mobileactivedefense.com> <ts0gdd$8207$1@dont-email.me> <20230210222026.910@kylheku.com> <ts7ob7$1cmdu$1@dont-email.me> <20230211213210.234@kylheku.com> <tsacvv$1o5ka$1@dont-email.me> <20230213183808.326@kylheku.com> <tsfiuf$2fh9n$1@dont-email.me> <20230215165007.67@kylheku.com>
<72hHL.102430$OD18.101196@fx08.iad>
Injection-Date: Thu, 16 Feb 2023 09:08:24 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="9d4bd981467b65fd4b26ce1c849d8ca3";
logging-data="3381101"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+UDGuSkzPT92+WbpQUZit0"
Cancel-Lock: sha1:QzdoHmfXtd7P3fFidrZbIbfqTvw=
 by: Muttley@dastardlyhq.com - Thu, 16 Feb 2023 09:08 UTC

On Thu, 16 Feb 2023 03:03:31 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:
>Kaz Kylheku <864-117-4973@kylheku.com> writes:
>/**
> * Wait for condition state to be signalled. The waiter is awakened by
> * the c_condition::signal() function setting the c_condition::condition
> * value to 1.
> */
>inline void
>c_condition::wait(void)
>{
> __asm__ __volatile__ (
> "\n1:\t"
> "testl $0xffffffff, %0\n\t"
> "jnz 2f\n\t"
> "xorq %%rcx, %%rcx\n\t"
> "xorq %%rdx, %%rdx\n\t"
> "leaq %0, %%rax\n\t"
> "monitor\n\t"
> "testl $0xffffffff, %0\n\t"
> "jnz 2f\n\t"
> "xorq %%rax, %%rax\n\t"
> "mwait\n\t"
> "jmp 1b\n\t"
> "2:\n\t"
> "movl $0, %0\n\t"
> :
> : "m"(condition)
> : "memory", "ax", "cx", "dx");
>}

Nice code but I suspect not very portable :)

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor