Skip to content

add mutex to protect events_executor current entity collection#2187

Merged
alsora merged 3 commits intorollingfrom
asoragna/events-executor-collection-thread-safe
May 18, 2023
Merged

add mutex to protect events_executor current entity collection#2187
alsora merged 3 commits intorollingfrom
asoragna/events-executor-collection-thread-safe

Conversation

@alsora
Copy link
Collaborator

@alsora alsora commented May 5, 2023

Add mutex to protect events_executor current entity collection and add unit-test.

The mutex is needed because the collection is essentially a list where refresh_current_collection_from_callback_groups can add/remove elements and retrieve_entity can read/remove elements.

Added a unit-test that without this PR was failing ~75% of the times and now succeeds.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants