Skip to content

queue: improved thread sync, send respect queue max-length - #206

Merged
NeroBurner merged 1 commit into
mainfrom
queue_with_condition_variable
Nov 2, 2026
Merged

NeroBurner merged 1 commit into
mainfrom
queue_with_condition_variable

Conversation

@NeroBurner

Copy link
Copy Markdown
Collaborator

Instead of busy waiting use proper synchronization functions. Still respect the timeout variables.

Use cv.notify() to wake other waiting threads.

The qQueueSend function now actually respect the maximum queue size and waits on a full queue instead of just growing it.

These changes improve stability for me (less or no segfaults during display OFF/ON transitions)

Instead of busy waiting use proper synchronization functions.
Still respect the timeout variables.

Use `cv.notify()` to wake other waiting threads.

The `qQueueSend` function now actually respect the maximum queue size
and waits on a full queue instead of just growing it.
@NeroBurner NeroBurner added the enhancement New feature or request label Nov 2, 2026
@NeroBurner
NeroBurner merged commit 024fb4e into main Nov 2, 2026
2 checks passed
@NeroBurner
NeroBurner deleted the queue_with_condition_variable branch November 2, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant