We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a714bf7 commit 926d7f6Copy full SHA for 926d7f6
wsd/COOLWSD.cpp
@@ -542,12 +542,12 @@ static int rebalanceChildren(int balance)
542
543
/// Proactively spawn children processes
544
/// to load documents with alacrity.
545
-/// Returns true only if at least one child was requested to spawn.
546
-static bool prespawnChildren()
+static void prespawnChildren()
547
{
548
// Rebalance if not forking already.
549
std::unique_lock<std::mutex> lock(NewChildrenMutex, std::defer_lock);
550
- return lock.try_lock() && (rebalanceChildren(COOLWSD::NumPreSpawnedChildren) > 0);
+ if (lock.try_lock())
+ rebalanceChildren(COOLWSD::NumPreSpawnedChildren);
551
}
552
553
#endif
0 commit comments