You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(StatusChangeLogger): add deferred subscription for thread safety
Add support for deferred subscription in StatusChangeLogger to fix race
conditions in loggers with worker threads (FileLogger2, SqliteLogger).
Changes to StatusChangeLogger:
- Add protected default constructor for deferred subscription mode
- Add protected subscribeToTreeChanges() method
- Derived classes can now complete initialization before receiving callbacks
Changes to FileLogger2:
- Remove FileLogger2PImplBase base-from-member idiom hack
- Use simple Pimpl pattern with deferred subscription
- Subscribe to tree changes AFTER writer thread is started
- Remove ready flag and related synchronization complexity
Changes to SqliteLogger:
- Use deferred subscription to fix same race condition
Remove all FileLogger2 TSAN suppressions - no longer needed.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments