apollo
apollo copied to clipboard
fix: shm messge lost
This commit strengthens the ConditionNotifier class by transitioning the seqs array to use atomic variables and by implementing proper memory ordering in both the Notify and Listen methods. These changes address potential concurrency issues, ensuring that sequence numbers and associated information are accurately and safely shared between threads. As a result, the notifier becomes more robust and reliable in multi-threaded environments.