accelbyte-unreal-sdk-plugin icon indicating copy to clipboard operation
accelbyte-unreal-sdk-plugin copied to clipboard

Added critical section to FMultiRegistry to make it thread-safe

Open tinyogre opened this issue 1 year ago • 0 comments

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.

tinyogre avatar Sep 13 '24 15:09 tinyogre