From: Rich Felker <dalias@libc.org>
To: Lee Shallis <gb2985@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: [musl] Suggestion for thread safety
Date: Tue, 22 Feb 2022 20:19:05 -0500 [thread overview]
Message-ID: <20220223011904.GX7074@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAOZ3c1rUN24Arx5iy+Zm-4gYajfBthQsgL9q-iiNQpAo1aZL8w@mail.gmail.com>
On Mon, Feb 21, 2022 at 11:36:06AM +0000, Lee Shallis wrote:
> First I'll start with the code snippets I've copied from my own code:
> [...]
>
> Take what you will of the above, the Allot function was included just
> to give you an idea of how the locks are made, as for pauseCB that
> should be re-mapped to a variant that calls something like
> pthread_yield(), it's what I tested with, anyways the general idea is
> that the shared lock defaults to NULL when not locked, when you want
> [...]
Is there any context to this? Some problem you're setting out to solve
in relationship to musl? We already have synchronization, using
well-understood standard primitives wherever it's possible and
practical. Are you advocating for doing something different, or just
explaining something you made?
Rich
prev parent reply other threads:[~2022-02-23 1:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-21 11:36 Lee Shallis
2022-02-21 17:42 ` Markus Wichmann
2022-02-23 0:30 ` Lee Shallis
2022-02-23 18:57 ` Markus Wichmann
2022-02-23 20:06 ` Rich Felker
2022-02-26 9:56 ` Lee Shallis
2022-02-26 11:38 ` Joakim Sindholt
2022-02-27 23:32 ` Lee Shallis
2022-02-28 0:15 ` Rich Felker
2022-02-28 8:48 ` Joakim Sindholt
2022-02-28 14:43 ` Lee Shallis
2022-02-28 15:19 ` Rich Felker
2022-02-28 15:50 ` Joakim Sindholt
2022-02-28 16:07 ` Lee Shallis
2022-03-02 1:44 ` Lee Shallis
2022-02-23 1:19 ` Rich Felker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220223011904.GX7074@brightrain.aerifal.cx \
--to=dalias@libc.org \
--cc=gb2985@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).