Skip to content

Commit

Permalink
Fixed|libdoomsday: Multithreaded access to the data bundle registry
Browse files Browse the repository at this point in the history
Backported commit 1d4a75462392c from the future.
  • Loading branch information
skyjake committed Oct 7, 2018
1 parent e2b8eda commit 0c56001
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doomsday/apps/libdoomsday/src/resource/bundles.cpp
Expand Up @@ -130,7 +130,7 @@ DENG2_PIMPL(Bundles)

void parseRegistry()
{
using Info = de::Info;
DENG2_GUARD(this);

if (!identityRegistry.isEmpty()) return;

Expand All @@ -141,7 +141,13 @@ DENG2_PIMPL(Bundles)

for (auto *elem : identityRegistry.root().contentsInOrder())
{
if (!elem->isBlock()) continue;
using Info = de::Info;

if (!elem->isBlock())
{
// Looking for "package" blocks.
continue;
}

Info::BlockElement &block = elem->as<Info::BlockElement>();
if (block.blockType() != QStringLiteral("package"))
Expand Down

0 comments on commit 0c56001

Please sign in to comment.