Skip to content

fix: Use atomic operations for task ID generation - #862

Merged
jprzimba merged 1 commit into
mainfrom
fix-sheduler-tasks
Aug 6, 2026
Merged

fix: Use atomic operations for task ID generation#862
jprzimba merged 1 commit into
mainfrom
fix-sheduler-tasks

Conversation

@jprzimba

@jprzimba jprzimba commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Replace direct increment operations on LAST_EVENT_ID with proper atomic fetch_add() calls using memory_order_relaxed. This ensures thread-safe ID generation and correct handling of ID wraparound to zero, improving the reliability of event ID assignment in the task scheduling system.

Replace direct increment operations on LAST_EVENT_ID with proper atomic fetch_add() calls using memory_order_relaxed. This ensures thread-safe ID generation and correct handling of ID wraparound to zero, improving the reliability of event ID assignment in the task scheduling system.
@jprzimba
jprzimba merged commit 28d04b1 into main Aug 6, 2026
22 checks passed
@jprzimba
jprzimba deleted the fix-sheduler-tasks branch August 6, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant