Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #124061

Re: weak_ptr reference count on shared_ptr

From "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups comp.lang.c++
Subject Re: weak_ptr reference count on shared_ptr
Date 2026-06-08 11:59 -0700
Organization A noiseless patient Spider
Message-ID <11073ep$3escj$1@dont-email.me> (permalink)
References (6 earlier) <10vu5lo$11jif$1@raubtier-asyl.eternal-september.org> <10vv9fn$1cq0a$1@dont-email.me> <1100n32$1nlpg$2@raubtier-asyl.eternal-september.org> <1101ula$22sni$1@dont-email.me> <1102vhs$2abd2$2@raubtier-asyl.eternal-september.org>

Show all headers | View raw


On 6/6/2026 10:28 PM, Bonita Montero wrote:
> Am 06.06.2026 um 22:07 schrieb Chris M. Thomasson:
> 
>> You are missing the point...? Why use it on a single threaded system 
>> anyway? What is a LOCK XADD vs a RMW without any LOCK, or just in code 
>> wrt a non-atomic RMW (++count)? If there is no second thread, there is 
>> no one to synchronize with. Paying a synchronization tax when there is 
>> no concurrency is just bad engineering?
> If the price is small it's not bad engineering.

Paying that price is a load server loop? It adds up, right?

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-01 10:19 +0000
  [OT] weak_ptr? shared_ptr? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-06-01 21:12 +0800
    Re: [OT] weak_ptr? shared_ptr? Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-01 16:35 +0200
      Re: [OT] weak_ptr? shared_ptr? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-01 14:52 -0700
        Re: [OT] weak_ptr? shared_ptr? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-06-01 15:04 -0700
          Re: [OT] weak_ptr? shared_ptr? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-01 15:24 -0700
        Re: [OT] weak_ptr? shared_ptr? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-06-11 21:54 +0800
    Re: [OT] weak_ptr? shared_ptr? boltar@caprica.universe - 2026-06-01 16:00 +0000
      Re: [OT] weak_ptr? shared_ptr? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-06-02 00:27 +0800
  Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-01 16:02 +0200
    Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-01 15:57 +0000
      Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-01 19:34 +0200
        Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-02 08:18 +0000
          Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-02 10:39 +0200
            Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-02 10:42 +0000
              Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-02 13:32 +0200
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-02 14:52 +0000
                Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-02 17:14 +0200
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-02 15:31 +0000
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-02 15:34 +0000
                Re: weak_ptr reference count on shared_ptr scott@slp53.sl.home (Scott Lurndal) - 2026-06-02 17:14 +0000
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-03 08:13 +0000
  Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-02 13:21 -0700
    Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-02 13:24 -0700
      Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-02 13:26 -0700
        Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-03 08:47 +0200
          Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-03 14:40 -0700
            Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-04 08:26 +0200
    Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-03 08:15 +0000
      Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-03 14:42 -0700
        Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-03 14:46 -0700
        Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-04 11:00 +0200
          Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-04 13:31 -0700
            Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-05 09:33 +0000
              Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-05 11:46 +0200
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-05 11:00 +0000
                Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-05 13:22 +0200
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-05 14:45 +0000
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-05 13:58 -0700
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-06 10:46 +0000
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-06 12:54 -0700
                Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-06 20:59 +0200
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-07 14:40 +0000
                Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-07 20:02 +0200
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-08 08:16 +0000
                Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-08 10:57 +0200
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-08 09:39 +0000
                Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-08 12:26 +0200
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-08 10:50 +0000
                Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-08 13:20 +0200
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-08 14:46 +0000
                Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-08 17:19 +0200
                Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-10 15:28 +0200
                Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-10 15:44 +0200
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-08 12:10 -0700
                Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-10 15:42 +0200
                Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-05 15:14 +0200
                Re: weak_ptr reference count on shared_ptr scott@slp53.sl.home (Scott Lurndal) - 2026-06-05 14:13 +0000
                Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-05 19:51 +0200
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-05 14:00 -0700
                Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-06 10:51 +0200
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-06 12:57 -0700
                Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-07 07:28 +0200
                Re: weak_ptr reference count on shared_ptr David Brown <david.brown@hesbynett.no> - 2026-06-06 21:05 +0200
            Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-05 11:42 +0200
              Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-05 12:53 -0700
                Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-06 10:51 +0200
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-06 13:07 -0700
                Re: weak_ptr reference count on shared_ptr Bonita Montero <Bonita.Montero@gmail.com> - 2026-06-07 07:28 +0200
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-08 11:59 -0700
        Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-04 10:24 +0000
          Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-04 13:41 -0700
            Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-05 09:29 +0000
            Re: weak_ptr reference count on shared_ptr Paavo Helde <eesnimi@osa.pri.ee> - 2026-06-05 18:27 +0300
              Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-05 15:56 +0000
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-05 13:02 -0700
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-06 10:45 +0000
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-06 13:11 -0700
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-06 13:17 -0700
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-06 20:08 -0700
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-07 14:44 +0000
                Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-07 11:48 -0700
                Re: weak_ptr reference count on shared_ptr boltar@caprica.universe - 2026-06-08 08:18 +0000
              Re: weak_ptr reference count on shared_ptr "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-06-05 13:11 -0700

csiph-web