Skip to content

Foundation: AsyncNotificationCenter hangs on stop() #5059

@aleks-f

Description

@aleks-f

Describe the bug
AsyncNotificationCenter::stop() only calls NotificationQueue::wakeUpAll() and never enqueues anything, so the dequeue thread may miss the wake-up if it happens in the gap before the thread blocks.

Solution
Enqueue internally an explicit ShutdownNotification before calling wakeUpAll().

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions