Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

<Tazman> damn my office is cold. <Tazman> need a hot secretary to warm it up. -- Seen on #Linux


devel / comp.lang.c++ / Re: The ultimate thread pool

SubjectAuthor
* The ultimate thread poolBonita Montero
+* Re: The ultimate thread poolChris M. Thomasson
|+* Re: The ultimate thread poolBonita Montero
||+- Re: The ultimate thread poolChris M. Thomasson
||`* Re: The ultimate thread poolChris M. Thomasson
|| `- Re: The ultimate thread poolChris M. Thomasson
|`* Re: The ultimate thread poolBonita Montero
| `- Re: The ultimate thread poolChris M. Thomasson
`* Re: The ultimate thread poolChris M. Thomasson
 `* Re: The ultimate thread poolChris M. Thomasson
  `* Re: The ultimate thread poolBonita Montero
   `* Re: The ultimate thread poolChris M. Thomasson
    `* Re: The ultimate thread poolBonita Montero
     `* Re: The ultimate thread poolChris M. Thomasson
      +* Re: The ultimate thread poolChris M. Thomasson
      |`- Re: The ultimate thread poolChris M. Thomasson
      `* Re: The ultimate thread poolBonita Montero
       `* Re: The ultimate thread poolChris M. Thomasson
        +* Re: The ultimate thread poolred floyd
        |`- Re: The ultimate thread poolChris M. Thomasson
        `* Re: The ultimate thread poolBonita Montero
         `* Re: The ultimate thread poolChris M. Thomasson
          `* Re: The ultimate thread poolBonita Montero
           `* Re: The ultimate thread poolChris M. Thomasson
            `* Re: The ultimate thread poolBonita Montero
             +* Re: The ultimate thread poolChris M. Thomasson
             |`* Re: The ultimate thread poolBonita Montero
             | `* Re: The ultimate thread poolChris M. Thomasson
             |  `* Re: The ultimate thread poolBonita Montero
             |   +* Re: The ultimate thread poolChris M. Thomasson
             |   |+- Re: The ultimate thread poolChris M. Thomasson
             |   |+- Re: The ultimate thread poolChris M. Thomasson
             |   |`- Re: The ultimate thread poolBonita Montero
             |   `* Re: The ultimate thread poolChris M. Thomasson
             |    +* Re: The ultimate thread poolBonita Montero
             |    |`* Re: The ultimate thread poolChris M. Thomasson
             |    | `* Re: The ultimate thread poolBonita Montero
             |    |  `- Re: The ultimate thread poolChris M. Thomasson
             |    `* Re: The ultimate thread poolBonita Montero
             |     `* Re: The ultimate thread poolChris M. Thomasson
             |      `* Re: The ultimate thread poolBonita Montero
             |       `* Re: The ultimate thread poolChris M. Thomasson
             |        `* Re: The ultimate thread poolBonita Montero
             |         +- Re: The ultimate thread poolChris M. Thomasson
             |         `* Re: The ultimate thread poolChris M. Thomasson
             |          `* Re: The ultimate thread poolBonita Montero
             |           `* Re: The ultimate thread poolChris M. Thomasson
             |            `* Re: The ultimate thread poolBonita Montero
             |             `- Re: The ultimate thread poolChris M. Thomasson
             `- Re: The ultimate thread poolChris M. Thomasson

Pages:12
Re: The ultimate thread pool

<upp1bs$3rqfm$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3125&group=comp.lang.c%2B%2B#3125

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Sun, 4 Feb 2024 13:59:24 -0800
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <upp1bs$3rqfm$1@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 4 Feb 2024 21:59:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d3cc8c0b731b0b00102a0ce70e10bacb";
logging-data="4057590"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EZsr92/c7+xn+BwTcGkKprfsqolacBB4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:H/xAxH3hUhG1/XYTAPn/puBGHG0=
Content-Language: en-US
In-Reply-To: <upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Sun, 4 Feb 2024 21:59 UTC

On 2/3/2024 10:41 PM, Bonita Montero wrote:
> Am 04.02.2024 um 06:30 schrieb Chris M. Thomasson:
>> On 2/3/2024 8:58 PM, Bonita Montero wrote:
>>> Am 03.02.2024 um 21:05 schrieb Chris M. Thomasson:
>>>
>>>> Hummm... You threw me for a loop here... What exactly do you mean?
>>>> Show me a condensed example. Those warnings are there for a
>>>> reason... You really need to model it in a race detector. Relacy is
>>>> a fun one.
>>>
>>> The code doesn't need any race detector, the synchronization part is
>>> trivial.
>>>
>>
>> What happens if you turn off all of those very important warnings?
>
> What a question ...
> I get incorrect warnings while compiling.

Why are they incorrect, according to you? Boil it down to a simple
example where these warnings are incorrect. That way I can reproduce it
on my side.

Re: The ultimate thread pool

<uppnlo$4j0k$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3126&group=comp.lang.c%2B%2B#3126

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Sun, 4 Feb 2024 20:20:08 -0800
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uppnlo$4j0k$5@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 5 Feb 2024 04:20:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e85c8ff53645b7d4213f2214e8730b82";
logging-data="150548"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fOf3JAcs+WvymCv6qFd8nYcOaMhxIXwU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:a7Dnh45qTMmpD1J1Tyuto+m2MnE=
In-Reply-To: <upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 5 Feb 2024 04:20 UTC

On 2/3/2024 10:41 PM, Bonita Montero wrote:
> Am 04.02.2024 um 06:30 schrieb Chris M. Thomasson:
>> On 2/3/2024 8:58 PM, Bonita Montero wrote:
>>> Am 03.02.2024 um 21:05 schrieb Chris M. Thomasson:
>>>
>>>> Hummm... You threw me for a loop here... What exactly do you mean?
>>>> Show me a condensed example. Those warnings are there for a
>>>> reason... You really need to model it in a race detector. Relacy is
>>>> a fun one.
>>>
>>> The code doesn't need any race detector, the synchronization part is
>>> trivial.
>>>
>>
>> What happens if you turn off all of those very important warnings?
>
> What a question ...
> I get incorrect warnings while compiling.

https://youtu.be/hAMQIvEtcJM

Re: The ultimate thread pool

<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3127&group=comp.lang.c%2B%2B#3127

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Mon, 5 Feb 2024 09:01:54 +0100
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 5 Feb 2024 08:01:54 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="91c4de24d5b171ec3d3ac654039ffab0";
logging-data="230961"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cCtSilItSbEy/3LDXhC74UeJnatg4gGo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:uGaEO1oza49ejo4OIn8lAjqsUrU=
Content-Language: de-DE
In-Reply-To: <upp1bs$3rqfm$1@dont-email.me>
 by: Bonita Montero - Mon, 5 Feb 2024 08:01 UTC

Am 04.02.2024 um 22:59 schrieb Chris M. Thomasson:

> Why are they incorrect, according to you? ...

No, according to what they should warn for.

Re: The ultimate thread pool

<uprbov$dspb$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3128&group=comp.lang.c%2B%2B#3128

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.samoylyk.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Mon, 5 Feb 2024 11:09:19 -0800
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uprbov$dspb$1@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 5 Feb 2024 19:09:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e85c8ff53645b7d4213f2214e8730b82";
logging-data="455467"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OD7mGhuztCVQPlTDx5j5axF/Px2DsTOg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:qf7G+9ZMDGaQnh41xz1uqtW4SxA=
Content-Language: en-US
In-Reply-To: <upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Mon, 5 Feb 2024 19:09 UTC

On 2/5/2024 12:01 AM, Bonita Montero wrote:
> Am 04.02.2024 um 22:59 schrieb Chris M. Thomasson:
>
>> Why are they incorrect, according to you? ...
>
> No, according to what they should warn for.
>

Can you create a little self-contained example that shows these warnings?

Re: The ultimate thread pool

<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3129&group=comp.lang.c%2B%2B#3129

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Tue, 6 Feb 2024 07:12:15 +0100
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Feb 2024 06:12:13 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="5e01b2cab306b6bd699a9cbcc4e4b381";
logging-data="787905"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Qp8CBibk6ws4oP4LJmyuUnAGRzJBdCys="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:s6yHEJ62oX+A5OrbuFjV5zBaU00=
In-Reply-To: <uprbov$dspb$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Tue, 6 Feb 2024 06:12 UTC

Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:

> Can you create a little self-contained example that shows these warnings?

Make the pragmas commented and look what the IDE shows as warnings.

Re: The ultimate thread pool

<upsju5$oafm$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3130&group=comp.lang.c%2B%2B#3130

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Mon, 5 Feb 2024 22:34:45 -0800
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <upsju5$oafm$3@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Feb 2024 06:34:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d977dfc718b87c6477e28e021d409c7a";
logging-data="797174"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iKjNv/msZsfSdDjfADrhbsdZJnbEj4Gc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:I3abaZZkQVb62/sGST32hr11NRc=
In-Reply-To: <upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Tue, 6 Feb 2024 06:34 UTC

On 2/5/2024 10:12 PM, Bonita Montero wrote:
> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>
>> Can you create a little self-contained example that shows these warnings?
>
> Make the pragmas commented and look what the IDE shows as warnings.
>

What is in:
______________________
#include <cassert>
#include "thread_pool.h"
#include "invoke_on_destruct.h"
______________________

?

Re: The ultimate thread pool

<upsk1s$oafm$4@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3131&group=comp.lang.c%2B%2B#3131

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Mon, 5 Feb 2024 22:36:45 -0800
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <upsk1s$oafm$4@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsju5$oafm$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Feb 2024 06:36:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d977dfc718b87c6477e28e021d409c7a";
logging-data="797174"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kAP/i40TjjKkNl8RIfu3ExNg3tuVCXDE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:o2QK1ORJt8FimTgHRzEyLeLlEhk=
In-Reply-To: <upsju5$oafm$3@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Tue, 6 Feb 2024 06:36 UTC

On 2/5/2024 10:34 PM, Chris M. Thomasson wrote:
> On 2/5/2024 10:12 PM, Bonita Montero wrote:
>> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>>
>>> Can you create a little self-contained example that shows these
>>> warnings?
>>
>> Make the pragmas commented and look what the IDE shows as warnings.
>>
>
> What is in:
> ______________________
> #include <cassert>
> #include "thread_pool.h"
> #include "invoke_on_destruct.h"
> ______________________
>
> ?

You have some issues here. These warnings are not for kicks and giggles,
so to speak. If these warnings are wrong, you need to file a bug report
to the MSVC team.

Re: The ultimate thread pool

<upsk4l$oafm$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3132&group=comp.lang.c%2B%2B#3132

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Mon, 5 Feb 2024 22:38:13 -0800
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <upsk4l$oafm$5@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Feb 2024 06:38:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d977dfc718b87c6477e28e021d409c7a";
logging-data="797174"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190vwCUaWCAEn3Rb1wvcC2rXnlbmAULVGk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CDo5/0mSQFK2B2x8qQQ1B+PA5lY=
Content-Language: en-US
In-Reply-To: <upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Tue, 6 Feb 2024 06:38 UTC

On 2/5/2024 10:12 PM, Bonita Montero wrote:
> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>
>> Can you create a little self-contained example that shows these warnings?
>
> Make the pragmas commented and look what the IDE shows as warnings.
>

Think about getting a warning free compile. Think about what these
warnings actually mean. If you find a bug, report it to the MSVC team.

Re: The ultimate thread pool

<upskjg$oi3e$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3133&group=comp.lang.c%2B%2B#3133

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Mon, 5 Feb 2024 22:46:08 -0800
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <upskjg$oi3e$1@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsju5$oafm$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Feb 2024 06:46:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d977dfc718b87c6477e28e021d409c7a";
logging-data="804974"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190iVkFzWVL7wQFK4wutkaXBixsr7wWz0o="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:sodQaXa367QSqBZzniWBNO1WtvY=
In-Reply-To: <upsju5$oafm$3@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Tue, 6 Feb 2024 06:46 UTC

On 2/5/2024 10:34 PM, Chris M. Thomasson wrote:
> On 2/5/2024 10:12 PM, Bonita Montero wrote:
>> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>>
>>> Can you create a little self-contained example that shows these
>>> warnings?
>>
>> Make the pragmas commented and look what the IDE shows as warnings.
>>
>
> What is in:
> ______________________
> #include <cassert>
> #include "thread_pool.h"

> #include "invoke_on_destruct.h"
^^^^^^^^^^^^^^^^^^^^^^

What is that for?

> ______________________
>
> ?

Re: The ultimate thread pool

<upt0sn$r52e$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3136&group=comp.lang.c%2B%2B#3136

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Tue, 6 Feb 2024 11:15:53 +0100
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <upt0sn$r52e$1@raubtier-asyl.eternal-september.org>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsju5$oafm$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Feb 2024 10:15:51 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="5e01b2cab306b6bd699a9cbcc4e4b381";
logging-data="889934"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Zv/5tcreJujSKfhi3GW88pBduAwCKPCc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rXGkq3dh0KjzSJFQaPxGZbIV3+w=
Content-Language: de-DE
In-Reply-To: <upsju5$oafm$3@dont-email.me>
 by: Bonita Montero - Tue, 6 Feb 2024 10:15 UTC

Am 06.02.2024 um 07:34 schrieb Chris M. Thomasson:
> On 2/5/2024 10:12 PM, Bonita Montero wrote:
>> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>>
>>> Can you create a little self-contained example that shows these
>>> warnings?
>>
>> Make the pragmas commented and look what the IDE shows as warnings.
>>
>
> What is in:
> ______________________
> #include <cassert>
> #include "thread_pool.h"

The header I posted.

> #include "invoke_on_destruct.h"

Sth. like experimental::scope_exit, this is my code:

#pragma once
#include <utility>

template<typename Fn>
requires requires( Fn fn ) { { fn() }; }
struct invoke_on_destruct
{ private:
Fn m_fn;
bool m_enabled;
public:
invoke_on_destruct( Fn &&fn ) :
m_fn( std::forward<Fn>( fn ) ),
m_enabled( true )
{
}
~invoke_on_destruct()
{
if( m_enabled )
m_fn();
}
void operator ()()
{
if( m_enabled )
m_enabled = false,
m_fn();
}
void disable()
{
m_enabled = false;
}
invoke_on_destruct &enable()
{
m_enabled = true;
return *this;
}
};

Re: The ultimate thread pool

<upt0v0$r52e$2@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3137&group=comp.lang.c%2B%2B#3137

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Tue, 6 Feb 2024 11:17:06 +0100
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <upt0v0$r52e$2@raubtier-asyl.eternal-september.org>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Feb 2024 10:17:04 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="5e01b2cab306b6bd699a9cbcc4e4b381";
logging-data="889934"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1975uA2p5OoJWVrT5ONV/9kTtrnN4cn0GM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kHvTNN+cV+7rK2SsgxNrfRgL9f4=
In-Reply-To: <upsk4l$oafm$5@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Tue, 6 Feb 2024 10:17 UTC

Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:

> Think about getting a warning free compile. Think about what these
> warnings actually mean. If you find a bug, report it to the MSVC team.

Where the compiler warns me there are no errors,
these are false warnings.

Re: The ultimate thread pool

<uptajf$svba$3@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3138&group=comp.lang.c%2B%2B#3138

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Tue, 6 Feb 2024 14:01:38 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uptajf$svba$3@raubtier-asyl.eternal-september.org>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Feb 2024 13:01:35 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="5e01b2cab306b6bd699a9cbcc4e4b381";
logging-data="949610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ltNAnYfh79hzfEMRUpnRwxSzcCi2XNtk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Z8i1d0ZU+OgFTI57jW59eiBWSC4=
In-Reply-To: <upsk4l$oafm$5@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Tue, 6 Feb 2024 13:01 UTC

Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:
> On 2/5/2024 10:12 PM, Bonita Montero wrote:
>> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>>
>>> Can you create a little self-contained example that shows these
>>> warnings?
>>
>> Make the pragmas commented and look what the IDE shows as warnings.
>>
>
> Think about getting a warning free compile. Think about what these
> warnings actually mean. If you find a bug, report it to the MSVC team.

Try this ...

void fn( unique_lock<mutex> &lock )
{ assert(lock);
lock.unlock();
}

.... and you'll get a warning.

Re: The ultimate thread pool

<upu2s1$11fqc$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3139&group=comp.lang.c%2B%2B#3139

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Tue, 6 Feb 2024 11:55:45 -0800
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <upu2s1$11fqc$1@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<upt0v0$r52e$2@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Feb 2024 19:55:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d977dfc718b87c6477e28e021d409c7a";
logging-data="1097548"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lT31y63jN+DrNyv4VUkt79BjwvdN1tzQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Uc5wipsTj6BrPOCFksRkmNBovog=
Content-Language: en-US
In-Reply-To: <upt0v0$r52e$2@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Tue, 6 Feb 2024 19:55 UTC

On 2/6/2024 2:17 AM, Bonita Montero wrote:
> Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:
>
>> Think about getting a warning free compile. Think about what these
>> warnings actually mean. If you find a bug, report it to the MSVC team.
>
> Where the compiler warns me there are no errors,
> these are false warnings.

Well, that deserves a bug report?

Re: The ultimate thread pool

<upu3hi$11fqc$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3140&group=comp.lang.c%2B%2B#3140

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Tue, 6 Feb 2024 12:07:15 -0800
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <upu3hi$11fqc$2@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<uptajf$svba$3@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 6 Feb 2024 20:07:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d977dfc718b87c6477e28e021d409c7a";
logging-data="1097548"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/eFZFiAQd8etcExda57WFpfI2YZn09zbc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:v77pimTQE2DXiwfyn3mDQ2KA/sQ=
In-Reply-To: <uptajf$svba$3@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Tue, 6 Feb 2024 20:07 UTC

On 2/6/2024 5:01 AM, Bonita Montero wrote:
> Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:
>> On 2/5/2024 10:12 PM, Bonita Montero wrote:
>>> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>>>
>>>> Can you create a little self-contained example that shows these
>>>> warnings?
>>>
>>> Make the pragmas commented and look what the IDE shows as warnings.
>>>
>>
>> Think about getting a warning free compile. Think about what these
>> warnings actually mean. If you find a bug, report it to the MSVC team.
>
> Try this ...
>
> void fn( unique_lock<mutex> &lock )
> {
>     assert(lock);
>     lock.unlock();
> }
>
> ... and you'll get a warning.
>

Fwiw, I get no warning with:

{
std::unique_lock<std::mutex> lock(m_mutex);
assert(lock);
lock.unlock();
//lock.unlock(); // this throws an exception.
}

The interesting part is the code for std::unique_lock:

~unique_lock() noexcept {
if (_Owns) {
_Pmtx->unlock();
}
}

I was wondering why std::unique_lock did not try to unlock it twice in
the dtor. Well, the code for std::~unique_lock that MSVC is using
answers my question. Its that _Owns variable. Humm...

Re: The ultimate thread pool

<uq0a7h$1gc3g$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3142&group=comp.lang.c%2B%2B#3142

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Wed, 7 Feb 2024 17:13:37 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uq0a7h$1gc3g$1@raubtier-asyl.eternal-september.org>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<upt0v0$r52e$2@raubtier-asyl.eternal-september.org>
<upu2s1$11fqc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 7 Feb 2024 16:13:37 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="bbb43048e7329d63a890ecfb5aa97ee6";
logging-data="1585264"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zcstxUlP6LGCPcdKXt4E1bIyvwDfBZRw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:TQxdViNcQrAW8OwMjCaNDArwykA=
In-Reply-To: <upu2s1$11fqc$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Wed, 7 Feb 2024 16:13 UTC

Am 06.02.2024 um 20:55 schrieb Chris M. Thomasson:
> On 2/6/2024 2:17 AM, Bonita Montero wrote:
>> Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:
>>
>>> Think about getting a warning free compile. Think about what these
>>> warnings actually mean. If you find a bug, report it to the MSVC team.
>>
>> Where the compiler warns me there are no errors,
>> these are false warnings.
>
> Well, that deserves a bug report?

I won't file it.

Re: The ultimate thread pool

<uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3143&group=comp.lang.c%2B%2B#3143

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Wed, 7 Feb 2024 17:15:00 +0100
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<uptajf$svba$3@raubtier-asyl.eternal-september.org>
<upu3hi$11fqc$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 7 Feb 2024 16:15:00 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="bbb43048e7329d63a890ecfb5aa97ee6";
logging-data="1585264"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2futL2XeP9xBxceS9PFmCWIR5zw8pqm0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZaNZyS717ES5dLVQAKVKafLaw8w=
In-Reply-To: <upu3hi$11fqc$2@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Wed, 7 Feb 2024 16:15 UTC

Am 06.02.2024 um 21:07 schrieb Chris M. Thomasson:
> On 2/6/2024 5:01 AM, Bonita Montero wrote:
>> Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:
>>> On 2/5/2024 10:12 PM, Bonita Montero wrote:
>>>> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>>>>
>>>>> Can you create a little self-contained example that shows these
>>>>> warnings?
>>>>
>>>> Make the pragmas commented and look what the IDE shows as warnings.
>>>>
>>>
>>> Think about getting a warning free compile. Think about what these
>>> warnings actually mean. If you find a bug, report it to the MSVC team.
>>
>> Try this ...
>>
>> void fn( unique_lock<mutex> &lock )
>> {
>>      assert(lock);
>>      lock.unlock();
>> }
>>
>> ... and you'll get a warning.
>>
>
> Fwiw, I get no warning with:
>
> {
>     std::unique_lock<std::mutex> lock(m_mutex);
>     assert(lock);
>     lock.unlock();
>     //lock.unlock(); // this throws an exception.
> }

That's sth. totally different. My function has the pre-condition
that it inherits the lock of the calling function and sometimes
it unlocks it.

> The interesting part is the code for std::unique_lock:
>
> ~unique_lock() noexcept {
>     if (_Owns) {
>         _Pmtx->unlock();
>     }
> }
>
>
> I was wondering why std::unique_lock did not try to unlock it twice in
> the dtor. Well, the code for std::~unique_lock that MSVC is using
> answers my question. Its that _Owns variable. Humm...

Re: The ultimate thread pool

<uq0pnk$1j51f$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3144&group=comp.lang.c%2B%2B#3144

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Wed, 7 Feb 2024 12:38:10 -0800
Organization: A noiseless patient Spider
Lines: 89
Message-ID: <uq0pnk$1j51f$1@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<uptajf$svba$3@raubtier-asyl.eternal-september.org>
<upu3hi$11fqc$2@dont-email.me>
<uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 7 Feb 2024 20:38:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="832a879ced2a94899cfa3a469992b5bb";
logging-data="1676335"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MvqHzE46FMeez9Jh48rrcdcx7I5Tqfbc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:56JlfrATVIli2OBrQHMY4n7EcDQ=
Content-Language: en-US
In-Reply-To: <uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Wed, 7 Feb 2024 20:38 UTC

On 2/7/2024 8:15 AM, Bonita Montero wrote:
> Am 06.02.2024 um 21:07 schrieb Chris M. Thomasson:
>> On 2/6/2024 5:01 AM, Bonita Montero wrote:
>>> Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:
>>>> On 2/5/2024 10:12 PM, Bonita Montero wrote:
>>>>> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>>>>>
>>>>>> Can you create a little self-contained example that shows these
>>>>>> warnings?
>>>>>
>>>>> Make the pragmas commented and look what the IDE shows as warnings.
>>>>>
>>>>
>>>> Think about getting a warning free compile. Think about what these
>>>> warnings actually mean. If you find a bug, report it to the MSVC team.
>>>
>>> Try this ...
>>>
>>> void fn( unique_lock<mutex> &lock )
>>> {
>>>      assert(lock);
>>>      lock.unlock();
>>> }
>>>
>>> ... and you'll get a warning.
>>>
>>
>> Fwiw, I get no warning with:
>>
>> {
>>      std::unique_lock<std::mutex> lock(m_mutex);
>>      assert(lock);
>>      lock.unlock();
>>      //lock.unlock(); // this throws an exception.
>> }
>
> That's sth. totally different. My function has the pre-condition
> that it inherits the lock of the calling function and sometimes
> it unlocks it.

Ahhh. I got them with:
__________________________________
namespace ct
{ struct mutex_test
{
std::mutex m_mutex;

void
bar(std::unique_lock<std::mutex>& lock)
{
assert(lock); // better be locked!
lock.unlock();
}

void
foo()
{
std::unique_lock<std::mutex> lock(m_mutex);
bar(lock); // beware. unlocks the damn thing!
lock.lock(); // okay...
}
};
} __________________________________

Give the warnings:
__________________________________
Severity Code Description Project File Line Suppression State Details
Warning C26115 Failing to release lock 'this->m_mutex' in function
'ct::mutex_test::foo'. ct_threads
D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp 26

Warning C26111 Caller failing to release lock 'this->m_mutex' before
calling function 'std::unique_lock<std::mutex>::lock'. ct_threads
D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp 26
Warning C26110 Caller failing to hold lock 'lock' before calling
function 'std::unique_lock<std::mutex>::unlock'. ct_threads
D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp 18
__________________________________

You just have to be very careful with this type of logic. These warnings
elude to that.

[...]

Re: The ultimate thread pool

<uq0pt9$1j51f$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3145&group=comp.lang.c%2B%2B#3145

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Wed, 7 Feb 2024 12:41:14 -0800
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uq0pt9$1j51f$2@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<upt0v0$r52e$2@raubtier-asyl.eternal-september.org>
<upu2s1$11fqc$1@dont-email.me>
<uq0a7h$1gc3g$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 7 Feb 2024 20:41:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="832a879ced2a94899cfa3a469992b5bb";
logging-data="1676335"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GrLwDn82bZQCT854UNX8TsDrw1gW0WBE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CO4Hcrev5zSsRx9QVxDPZlcbQ+Q=
Content-Language: en-US
In-Reply-To: <uq0a7h$1gc3g$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Wed, 7 Feb 2024 20:41 UTC

On 2/7/2024 8:13 AM, Bonita Montero wrote:
> Am 06.02.2024 um 20:55 schrieb Chris M. Thomasson:
>> On 2/6/2024 2:17 AM, Bonita Montero wrote:
>>> Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:
>>>
>>>> Think about getting a warning free compile. Think about what these
>>>> warnings actually mean. If you find a bug, report it to the MSVC team.
>>>
>>> Where the compiler warns me there are no errors,
>>> these are false warnings.
>>
>> Well, that deserves a bug report?
>
> I won't file it.
>

Maybe you should. However, the warnings do flag some "sketchy" things
are going on.

Re: The ultimate thread pool

<uq2g53$1v070$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3147&group=comp.lang.c%2B%2B#3147

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Thu, 8 Feb 2024 13:07:00 +0100
Organization: A noiseless patient Spider
Lines: 91
Message-ID: <uq2g53$1v070$1@raubtier-asyl.eternal-september.org>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up3r6t$3hjng$1@dont-email.me> <up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<uptajf$svba$3@raubtier-asyl.eternal-september.org>
<upu3hi$11fqc$2@dont-email.me>
<uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>
<uq0pnk$1j51f$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Feb 2024 12:06:59 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="3ad1a0f9a1c5985b7064fc9ba729eb43";
logging-data="2064608"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JFRgiINBLXyfKt3Cw3wJSshnXl2JKOFA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:H/iYZkCN9rPergztMUwAoFzp52g=
Content-Language: de-DE
In-Reply-To: <uq0pnk$1j51f$1@dont-email.me>
 by: Bonita Montero - Thu, 8 Feb 2024 12:07 UTC

Am 07.02.2024 um 21:38 schrieb Chris M. Thomasson:
> On 2/7/2024 8:15 AM, Bonita Montero wrote:
>> Am 06.02.2024 um 21:07 schrieb Chris M. Thomasson:
>>> On 2/6/2024 5:01 AM, Bonita Montero wrote:
>>>> Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:
>>>>> On 2/5/2024 10:12 PM, Bonita Montero wrote:
>>>>>> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>>>>>>
>>>>>>> Can you create a little self-contained example that shows these
>>>>>>> warnings?
>>>>>>
>>>>>> Make the pragmas commented and look what the IDE shows as warnings.
>>>>>>
>>>>>
>>>>> Think about getting a warning free compile. Think about what these
>>>>> warnings actually mean. If you find a bug, report it to the MSVC team.
>>>>
>>>> Try this ...
>>>>
>>>> void fn( unique_lock<mutex> &lock )
>>>> {
>>>>      assert(lock);
>>>>      lock.unlock();
>>>> }
>>>>
>>>> ... and you'll get a warning.
>>>>
>>>
>>> Fwiw, I get no warning with:
>>>
>>> {
>>>      std::unique_lock<std::mutex> lock(m_mutex);
>>>      assert(lock);
>>>      lock.unlock();
>>>      //lock.unlock(); // this throws an exception.
>>> }
>>
>> That's sth. totally different. My function has the pre-condition
>> that it inherits the lock of the calling function and sometimes
>> it unlocks it.
>
> Ahhh. I got them with:
> __________________________________
> namespace ct
> {
>     struct mutex_test
>     {
>         std::mutex m_mutex;
>
>         void
>         bar(std::unique_lock<std::mutex>& lock)
>         {
>             assert(lock); // better be locked!
>             lock.unlock();
>         }
>
>         void
>         foo()
>         {
>             std::unique_lock<std::mutex> lock(m_mutex);
>             bar(lock); // beware. unlocks the damn thing!
>             lock.lock(); // okay...
>         }
>     };
> }
> __________________________________
>
> Give the warnings:
> __________________________________
> Severity    Code    Description    Project    File    Line
> Suppression State    Details
> Warning    C26115    Failing to release lock 'this->m_mutex' in function
> 'ct::mutex_test::foo'.    ct_threads
> D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp    26
>
> Warning    C26111    Caller failing to release lock 'this->m_mutex'
> before calling function 'std::unique_lock<std::mutex>::lock'.
> ct_threads D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp    26
>
> Warning    C26110    Caller failing to hold lock 'lock' before calling
> function 'std::unique_lock<std::mutex>::unlock'.    ct_threads
> D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp    18
> __________________________________
>
>
> You just have to be very careful with this type of logic. These warnings
> elude to that.

Can't you read my code ?
That's still sth. completely different than what I did.

Re: The ultimate thread pool

<uq3c19$241l2$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3148&group=comp.lang.c%2B%2B#3148

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Thu, 8 Feb 2024 12:02:49 -0800
Organization: A noiseless patient Spider
Lines: 100
Message-ID: <uq3c19$241l2$1@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<uptajf$svba$3@raubtier-asyl.eternal-september.org>
<upu3hi$11fqc$2@dont-email.me>
<uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>
<uq0pnk$1j51f$1@dont-email.me>
<uq2g53$1v070$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Feb 2024 20:02:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cc08f72a34b5a985cecd1925fc46b3c5";
logging-data="2229922"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Y7K04d/hdGiHahySbHRY4FKF/kOn8D48="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6xsPej+IpL/TwgGynVPfPtU37/k=
In-Reply-To: <uq2g53$1v070$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 8 Feb 2024 20:02 UTC

On 2/8/2024 4:07 AM, Bonita Montero wrote:
> Am 07.02.2024 um 21:38 schrieb Chris M. Thomasson:
>> On 2/7/2024 8:15 AM, Bonita Montero wrote:
>>> Am 06.02.2024 um 21:07 schrieb Chris M. Thomasson:
>>>> On 2/6/2024 5:01 AM, Bonita Montero wrote:
>>>>> Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:
>>>>>> On 2/5/2024 10:12 PM, Bonita Montero wrote:
>>>>>>> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>>>>>>>
>>>>>>>> Can you create a little self-contained example that shows these
>>>>>>>> warnings?
>>>>>>>
>>>>>>> Make the pragmas commented and look what the IDE shows as warnings.
>>>>>>>
>>>>>>
>>>>>> Think about getting a warning free compile. Think about what these
>>>>>> warnings actually mean. If you find a bug, report it to the MSVC
>>>>>> team.
>>>>>
>>>>> Try this ...
>>>>>
>>>>> void fn( unique_lock<mutex> &lock )
>>>>> {
>>>>>      assert(lock);
>>>>>      lock.unlock();
>>>>> }
>>>>>
>>>>> ... and you'll get a warning.
>>>>>
>>>>
>>>> Fwiw, I get no warning with:
>>>>
>>>> {
>>>>      std::unique_lock<std::mutex> lock(m_mutex);
>>>>      assert(lock);
>>>>      lock.unlock();
>>>>      //lock.unlock(); // this throws an exception.
>>>> }
>>>
>>> That's sth. totally different. My function has the pre-condition
>>> that it inherits the lock of the calling function and sometimes
>>> it unlocks it.
>>
>> Ahhh. I got them with:
>> __________________________________
>> namespace ct
>> {
>>      struct mutex_test
>>      {
>>          std::mutex m_mutex;
>>
>>          void
>>          bar(std::unique_lock<std::mutex>& lock)
>>          {
>>              assert(lock); // better be locked!
>>              lock.unlock();
>>          }
>>
>>          void
>>          foo()
>>          {
>>              std::unique_lock<std::mutex> lock(m_mutex);
>>              bar(lock); // beware. unlocks the damn thing!
>>              lock.lock(); // okay...
>>          }
>>      };
>> }
>> __________________________________
>>
>> Give the warnings:
>> __________________________________
>> Severity    Code    Description    Project    File    Line Suppression
>> State    Details
>> Warning    C26115    Failing to release lock 'this->m_mutex' in
>> function 'ct::mutex_test::foo'.    ct_threads
>> D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp    26
>>
>> Warning    C26111    Caller failing to release lock 'this->m_mutex'
>> before calling function 'std::unique_lock<std::mutex>::lock'.
>> ct_threads D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp    26
>>
>> Warning    C26110    Caller failing to hold lock 'lock' before calling
>> function 'std::unique_lock<std::mutex>::unlock'.    ct_threads
>> D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp    18
>> __________________________________
>>
>>
>> You just have to be very careful with this type of logic. These
>> warnings elude to that.
>
> Can't you read my code ?

Yes.

> That's still sth. completely different than what I did.
>

I just wanted to get MSVC to pop out those "false" warnings. Mission
accomplished.

Re: The ultimate thread pool

<uq3h25$24ngq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3149&group=comp.lang.c%2B%2B#3149

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Thu, 8 Feb 2024 13:28:38 -0800
Organization: A noiseless patient Spider
Lines: 96
Message-ID: <uq3h25$24ngq$1@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<up99ph$l7gv$1@dont-email.me>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<uptajf$svba$3@raubtier-asyl.eternal-september.org>
<upu3hi$11fqc$2@dont-email.me>
<uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>
<uq0pnk$1j51f$1@dont-email.me>
<uq2g53$1v070$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Feb 2024 21:28:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cc08f72a34b5a985cecd1925fc46b3c5";
logging-data="2252314"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rwAR6bL3vP789Y+UCh8lme9+ovWEhYME="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:vs6sfvPX3EbB4r4ixGAoabP2mMI=
Content-Language: en-US
In-Reply-To: <uq2g53$1v070$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Thu, 8 Feb 2024 21:28 UTC

On 2/8/2024 4:07 AM, Bonita Montero wrote:
> Am 07.02.2024 um 21:38 schrieb Chris M. Thomasson:
>> On 2/7/2024 8:15 AM, Bonita Montero wrote:
>>> Am 06.02.2024 um 21:07 schrieb Chris M. Thomasson:
>>>> On 2/6/2024 5:01 AM, Bonita Montero wrote:
>>>>> Am 06.02.2024 um 07:38 schrieb Chris M. Thomasson:
>>>>>> On 2/5/2024 10:12 PM, Bonita Montero wrote:
>>>>>>> Am 05.02.2024 um 20:09 schrieb Chris M. Thomasson:
>>>>>>>
>>>>>>>> Can you create a little self-contained example that shows these
>>>>>>>> warnings?
>>>>>>>
>>>>>>> Make the pragmas commented and look what the IDE shows as warnings.
>>>>>>>
>>>>>>
>>>>>> Think about getting a warning free compile. Think about what these
>>>>>> warnings actually mean. If you find a bug, report it to the MSVC
>>>>>> team.
>>>>>
>>>>> Try this ...
>>>>>
>>>>> void fn( unique_lock<mutex> &lock )
>>>>> {
>>>>>      assert(lock);
>>>>>      lock.unlock();
>>>>> }
>>>>>
>>>>> ... and you'll get a warning.
>>>>>
>>>>
>>>> Fwiw, I get no warning with:
>>>>
>>>> {
>>>>      std::unique_lock<std::mutex> lock(m_mutex);
>>>>      assert(lock);
>>>>      lock.unlock();
>>>>      //lock.unlock(); // this throws an exception.
>>>> }
>>>
>>> That's sth. totally different. My function has the pre-condition
>>> that it inherits the lock of the calling function and sometimes
>>> it unlocks it.
>>
>> Ahhh. I got them with:
>> __________________________________
>> namespace ct
>> {
>>      struct mutex_test
>>      {
>>          std::mutex m_mutex;
>>
>>          void
>>          bar(std::unique_lock<std::mutex>& lock)
>>          {
>>              assert(lock); // better be locked!
>>              lock.unlock();
>>          }
>>
>>          void
>>          foo()
>>          {
>>              std::unique_lock<std::mutex> lock(m_mutex);
>>              bar(lock); // beware. unlocks the damn thing!
>>              lock.lock(); // okay...
>>          }
>>      };
>> }
>> __________________________________
>>
>> Give the warnings:
>> __________________________________
>> Severity    Code    Description    Project    File    Line Suppression
>> State    Details
>> Warning    C26115    Failing to release lock 'this->m_mutex' in
>> function 'ct::mutex_test::foo'.    ct_threads
>> D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp    26
>>
>> Warning    C26111    Caller failing to release lock 'this->m_mutex'
>> before calling function 'std::unique_lock<std::mutex>::lock'.
>> ct_threads D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp    26
>>
>> Warning    C26110    Caller failing to hold lock 'lock' before calling
>> function 'std::unique_lock<std::mutex>::unlock'.    ct_threads
>> D:\ct_dev\projects\ct_threads\ct_threads\ct_main.cpp    18
>> __________________________________
>>
>>
>> You just have to be very careful with this type of logic. These
>> warnings elude to that.
>
> Can't you read my code ?
> That's still sth. completely different than what I did.
>

Keep in mind that your code disables those warnings. So, be sure to turn
them back on for any and all user code!

Re: The ultimate thread pool

<uq553j$2k1jc$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3150&group=comp.lang.c%2B%2B#3150

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Fri, 9 Feb 2024 13:16:52 +0100
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <uq553j$2k1jc$1@raubtier-asyl.eternal-september.org>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<upajva$uvcc$1@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<uptajf$svba$3@raubtier-asyl.eternal-september.org>
<upu3hi$11fqc$2@dont-email.me>
<uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>
<uq0pnk$1j51f$1@dont-email.me>
<uq2g53$1v070$1@raubtier-asyl.eternal-september.org>
<uq3h25$24ngq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 9 Feb 2024 12:16:51 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="ac55026e8d1d5f7f92fefadeacc8f49c";
logging-data="2754156"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bmbxvD5gy7bVItb5q74iPVfdOpyXXSeg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:bqUg2OG0B6pke5IlXS8WxnSql+k=
Content-Language: de-DE
In-Reply-To: <uq3h25$24ngq$1@dont-email.me>
 by: Bonita Montero - Fri, 9 Feb 2024 12:16 UTC

Am 08.02.2024 um 22:28 schrieb Chris M. Thomasson:

> Keep in mind that your code disables those warnings. So, be sure to turn
> them back on for any and all user code!

Locking and unlocking mutexes is trivial and I don't need any addtional
aid for that. And MSVC runtime gives me a debug message if I try to
unlock a non-locked mutex; that's sufficient for me. And the shown
code is never trapped in that way.

Re: The ultimate thread pool

<uq5v8m$2p14t$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3151&group=comp.lang.c%2B%2B#3151

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Fri, 9 Feb 2024 11:43:19 -0800
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uq5v8m$2p14t$1@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<upc058$16gik$1@dont-email.me>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<uptajf$svba$3@raubtier-asyl.eternal-september.org>
<upu3hi$11fqc$2@dont-email.me>
<uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>
<uq0pnk$1j51f$1@dont-email.me>
<uq2g53$1v070$1@raubtier-asyl.eternal-september.org>
<uq3h25$24ngq$1@dont-email.me>
<uq553j$2k1jc$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 9 Feb 2024 19:43:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4ead4af3f9aeb320c651386995f49def";
logging-data="2917533"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Q6CIaaZC5SS50nLYKiRzMZ+ox66r1UJg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:EnXHLPO6YVIpZ3dGoEz++37p8O4=
In-Reply-To: <uq553j$2k1jc$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Fri, 9 Feb 2024 19:43 UTC

On 2/9/2024 4:16 AM, Bonita Montero wrote:
> Am 08.02.2024 um 22:28 schrieb Chris M. Thomasson:
>
>> Keep in mind that your code disables those warnings. So, be sure to
>> turn them back on for any and all user code!
>
> Locking and unlocking mutexes is trivial and I don't need any addtional
> aid for that. And MSVC runtime gives me a debug message if I try to
> unlock a non-locked mutex; that's sufficient for me. And the shown
> code is never trapped in that way.
>

I am saying that a user of your code might not want those warnings
disabled at all. So, you should turn them back on.

Re: The ultimate thread pool

<uq70hr$31soi$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3152&group=comp.lang.c%2B%2B#3152

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Sat, 10 Feb 2024 06:11:26 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uq70hr$31soi$1@raubtier-asyl.eternal-september.org>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<updpvf$1j50l$1@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<uptajf$svba$3@raubtier-asyl.eternal-september.org>
<upu3hi$11fqc$2@dont-email.me>
<uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>
<uq0pnk$1j51f$1@dont-email.me>
<uq2g53$1v070$1@raubtier-asyl.eternal-september.org>
<uq3h25$24ngq$1@dont-email.me>
<uq553j$2k1jc$1@raubtier-asyl.eternal-september.org>
<uq5v8m$2p14t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 10 Feb 2024 05:11:23 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="c21770382b85594dfdcf5bc0307066f6";
logging-data="3207954"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1897cDyYyO600bGNmwNTImI4jxKCPz+Sjw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BO2OXnWzJYIhDUQeP+wAOTB7HYI=
Content-Language: de-DE
In-Reply-To: <uq5v8m$2p14t$1@dont-email.me>
 by: Bonita Montero - Sat, 10 Feb 2024 05:11 UTC

Am 09.02.2024 um 20:43 schrieb Chris M. Thomasson:

> I am saying that a user of your code might not want those
> warnings disabled at all. So, you should turn them back on.

In my own translation units I don't re-enable those warnings.
In headers I disable certain warnings at the beginning of the
header and re-enable them at the end, so that these headers
won't disable those warnings for translation units of others
using my code.

Re: The ultimate thread pool

<uq9js7$9h2s$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3153&group=comp.lang.c%2B%2B#3153

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: The ultimate thread pool
Date: Sat, 10 Feb 2024 20:53:28 -0800
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uq9js7$9h2s$1@dont-email.me>
References: <uou5ir$2cuko$2@raubtier-asyl.eternal-september.org>
<upeao1$1m29s$1@dont-email.me>
<upfr60$2114k$1@raubtier-asyl.eternal-september.org>
<upgti9$278rd$1@dont-email.me>
<upm2nq$38f0a$1@raubtier-asyl.eternal-september.org>
<upm6a8$3943l$1@dont-email.me>
<upn5gs$3harq$1@raubtier-asyl.eternal-september.org>
<upn7eb$3hi85$1@dont-email.me>
<upnbje$3i3mu$1@raubtier-asyl.eternal-september.org>
<upp1bs$3rqfm$1@dont-email.me>
<upq4lh$71hh$1@raubtier-asyl.eternal-september.org>
<uprbov$dspb$1@dont-email.me>
<upsijt$o1e1$1@raubtier-asyl.eternal-september.org>
<upsk4l$oafm$5@dont-email.me>
<uptajf$svba$3@raubtier-asyl.eternal-september.org>
<upu3hi$11fqc$2@dont-email.me>
<uq0aa4$1gc3g$2@raubtier-asyl.eternal-september.org>
<uq0pnk$1j51f$1@dont-email.me>
<uq2g53$1v070$1@raubtier-asyl.eternal-september.org>
<uq3h25$24ngq$1@dont-email.me>
<uq553j$2k1jc$1@raubtier-asyl.eternal-september.org>
<uq5v8m$2p14t$1@dont-email.me>
<uq70hr$31soi$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 11 Feb 2024 04:53:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1870824958f2a9e18782ed9b4cc37114";
logging-data="312412"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mteFNcBT7TfU8Ri0v7QvnhCiAiddXCf8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:RJIH+7tvnkEcHXbXUZtB7yuobM0=
In-Reply-To: <uq70hr$31soi$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Sun, 11 Feb 2024 04:53 UTC

On 2/9/2024 9:11 PM, Bonita Montero wrote:
> Am 09.02.2024 um 20:43 schrieb Chris M. Thomasson:
>
>> I am saying that a user of your code might not want those
>> warnings disabled at all. So, you should turn them back on.
>
> In my own translation units I don't re-enable those warnings.
> In headers I disable certain warnings at the beginning of the
> header and re-enable them at the end, so that these headers
> won't disable those warnings for translation units of others
> using my code.
>

Yup. I think that would be the prudent thing to do. :^)

Okay.

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor