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.
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.
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.
| Sysop: | Tetrazocine |
|---|---|
| Location: | Melbourne, VIC, Australia |
| Users: | 15 |
| Nodes: | 8 (0 / 8) |
| Uptime: | 215:26:29 |
| Calls: | 188 |
| Files: | 21,502 |
| Messages: | 80,866 |