Skip to content

Added critical section to FMultiRegistry to make it thread-safe#7

Open
tinyogre wants to merge 1 commit intoAccelByte:mainfrom
tinyogre:main
Open

Added critical section to FMultiRegistry to make it thread-safe#7
tinyogre wants to merge 1 commit intoAccelByte:mainfrom
tinyogre:main

Conversation

@tinyogre
Copy link
Copy Markdown

Various login tasks access FMultiRegistry, which contains a static TMap<>. Those tasks run on worker threads, meaning that TMap<> was being both read from and modified by multiple threads at once, especially when logging in two PIE clients at the same time. This adds a critical section around all accesses to the map to make FMultiRegistry thread-safe.

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.

1 participant