From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Dominik Csapak <d.csapak@proxmox.com>,
Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [RFC PATCH widget-toolkit] utils: API2Request: defer masking after layout
Date: Tue, 19 Mar 2024 09:21:31 +0100 [thread overview]
Message-ID: <62b04b1b-167a-49cb-b680-90eabc83f1c2@proxmox.com> (raw)
In-Reply-To: <ce64a586-31c9-4786-b507-3344bcecd00f@proxmox.com>
On 19/03/2024 08:44, Dominik Csapak wrote:
> thinking about it a bit more though, i think what would be better here
> is a ref counting of running api2 requests on that waitMsgTarget
> and only unmask when the count reaches zero... I'll send a v2 for that
fine by me, both have some coupling in how the component is doing
loading and could theoretically break and possibly have a tiny
chance that they result in flickering when having the UI open on
a localhost and the first load finishes before the second one
started.
In anyway, this would be still a improvement over the current
situation, so fine by me.
On 19/03/2024 08:44, Dominik Csapak wrote:
> On 3/18/24 16:50, Thomas Lamprecht wrote:
>> On 18/03/2024 14:44, Dominik Csapak wrote:
>>> the masking if this marker is still there. (thankfully javascript is
>>> single threaded so this should not end up being a data race)
>>
>> Note that async could cause data races also in single-threaded
>> code, but as we do not use that here and no yield point exist
>> that doesn't matter here – just mentioning it because the statement
>> would suggest that one could not have code that is susceptible to
>> such a race at all in JavaScript, which is not true.
>
> true, but those can only happen (as you mentioned) at yield points (await)
> and since most of our code is non-async i did not mention it here, but
> yeah one additional sentence about it being non async is probably warranted
yeah, as said, just your blanket statement is wrong in the general
sense, so I'd either drop it or adapt it to "as we're in
synchronous JS code there can be no data-race" would be less
contentious
prev parent reply other threads:[~2024-03-19 8:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 13:44 Dominik Csapak
2024-03-18 15:50 ` Thomas Lamprecht
2024-03-19 7:44 ` Dominik Csapak
2024-03-19 8:09 ` Dominik Csapak
2024-03-19 8:21 ` Thomas Lamprecht [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=62b04b1b-167a-49cb-b680-90eabc83f1c2@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=d.csapak@proxmox.com \
--cc=pve-devel@lists.proxmox.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox