• Re: Concurrent API's and Semantics

    From Bonita Montero@3:633/10 to All on Wed Sep 10 17:39:52 2025
    From: Bonita.Montero@gmail.com

    Am 20.08.2025 um 20:53 schrieb Chris M. Thomasson:

    Sigh. A push_try can be adding something to an array based queue that is full, failed! A pop_try can be trying to pop from an empty condition,
    failed! They are generic and will work with lock-free stacks and queues.

    That doesn't make sense at all. If you want to say sth. to another
    thread you can't omit that if the queue is full. And if you want
    tasks from another thread you can't omit that also.

    --- SoupGate-Linux v1.05
    * Origin: Dragon's Lair ---:- FidoNet<>Usenet Gateway -:--- (3:633/10)
  • From Chris M. Thomasson@3:633/10 to Bonita Montero on Wed Sep 10 13:14:27 2025
    From: chris.m.thomasson.1@gmail.com

    On 9/10/2025 8:39 AM, Bonita Montero wrote:
    Am 20.08.2025 um 20:53 schrieb Chris M. Thomasson:

    Sigh. A push_try can be adding something to an array based queue that
    is full, failed! A pop_try can be trying to pop from an empty
    condition, failed! They are generic and will work with lock-free
    stacks and queues.

    That doesn't make sense at all.

    Really? A push_try and a pop_try are not compatible? Why?


    If you want to say sth. to another
    thread you can't omit that if the queue is full. And if you want
    tasks from another thread you can't omit that also.

    --- SoupGate-Linux v1.05
    * Origin: Dragon's Lair ---:- FidoNet<>Usenet Gateway -:--- (3:633/10)
  • From Chris M. Thomasson@3:633/10 to Chris M. Thomasson on Wed Sep 10 14:20:26 2025
    From: chris.m.thomasson.1@gmail.com

    On 9/10/2025 1:14 PM, Chris M. Thomasson wrote:
    On 9/10/2025 8:39 AM, Bonita Montero wrote:
    Am 20.08.2025 um 20:53 schrieb Chris M. Thomasson:

    Sigh. A push_try can be adding something to an array based queue that
    is full, failed! A pop_try can be trying to pop from an empty
    condition, failed! They are generic and will work with lock-free
    stacks and queues.

    That doesn't make sense at all.

    Really? A push_try and a pop_try are not compatible? Why?


    If you want to say sth. to another
    thread you can't omit that if the queue is full. And if you want
    tasks from another thread you can't omit that also.


    A try can fail or not. Got it?

    --- SoupGate-Linux v1.05
    * Origin: Dragon's Lair ---:- FidoNet<>Usenet Gateway -:--- (3:633/10)