• Re: Futex Stack Test...

    From Chris M. Thomasson@chris.m.thomasson.1@gmail.com to comp.lang.c++ on Fri Feb 28 00:41:15 2025
    From Newsgroup: comp.lang.c++

    On 2/17/2025 11:01 PM, Paavo Helde wrote:
    On 18.02.2025 01:17, Chris M. Thomasson wrote:
    This is a little C++20 test using a futex to allow one to wait on a
    lock-free stack. The main stack logic is in struct ct_stack. Well, can
    you get to compile and run? Thanks...

    Seamed to work fine, but compilation produced some warnings about the CT_WAIT macro.
    [...]
    Shutdown complete!

    ct_shared::~ct_shared()




    g_ct_work_alloations = 10000042
    g_ct_work_dealloations = 10000042
    ^^^^^^^^^^^^^^^^

    It would help if I spelled those damn words right! Allocation,
    Deallocation... Where are my c's? lol. Wow.

    Sorry about that non-sense.





    Fin!
    _______________________


    Well, any luck?


    --- Synchronet 3.20c-Linux NewsLink 1.2