Skip to content

Fix single-shot scheduler pointer race and guard stop_and_wait - #74

Closed
LimiNode wants to merge 1 commit into
mainfrom
codex/add-timerscheduler-for-timer-management-z7hls9
Closed

Fix single-shot scheduler pointer race and guard stop_and_wait#74
LimiNode wants to merge 1 commit into
mainfrom
codex/add-timerscheduler-for-timer-management-z7hls9

Conversation

@LimiNode

Copy link
Copy Markdown
Owner

Summary

  • add a per-thread timer execution scope so stop_and_wait can assert when called reentrantly from inside the callback
  • cache the TimerScheduler pointer before installing the single-shot lambda and reuse the cached value when cleaning up
  • wrap due timer execution in an exception guard and ensure Timer::~Timer() stops cleanly before releasing its state

Testing

  • cmake -S . -B build
  • cmake --build build
  • ctest --test-dir build

https://chatgpt.com/codex/tasks/task_e_68d1ea4e844c832c94779ffe336ff33d

@LimiNode LimiNode closed this Sep 23, 2025
@LimiNode
LimiNode deleted the codex/add-timerscheduler-for-timer-management-z7hls9 branch December 5, 2025 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant