Skip to content

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

Merged
LimiNode merged 1 commit into
mainfrom
codex/add-timerscheduler-for-timer-management-yszagq
Sep 23, 2025
Merged

Fix single-shot scheduler pointer race and guard stop_and_wait#75
LimiNode merged 1 commit into
mainfrom
codex/add-timerscheduler-for-timer-management-yszagq

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 merged commit 01004ce into main Sep 23, 2025
7 checks passed
@LimiNode
LimiNode deleted the codex/add-timerscheduler-for-timer-management-yszagq 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