* Use an atomic flag to stop stream allocator * use a mutex for event channel * RLock while posting event * lock isStopped flag to prevent posting to closed channel
* Use an atomic flag to stop stream allocator * use a mutex for event channel * RLock while posting event * lock isStopped flag to prevent posting to closed channel