Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit f8ebc2b

Browse files
committed
Thread join fix
1 parent 1a95731 commit f8ebc2b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.1.9
1+
v0.1.20

libreoffice-core/desktop/source/lib/wasm_extensions.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ void WasmDocumentExtension::stopTileRenderer(int32_t viewId)
140140
auto threadIt = tileRendererThreads_[data->threadId];
141141

142142
pthread_join(threadIt, nullptr);
143+
// WARN: DO NOT REMOVE THE LOG BELOW
144+
// It is necessary for the join to complete because it forces the emscripten runtime
145+
// to be invoked and collect the unused pool workers
146+
SAL_WARN("tile", "thread joined");
147+
143148
// Don't erase it, since the position is used as an ID now
144149
// tileRendererThreads_.erase(threadIt);
145150
delete[] data->paintedTile;

0 commit comments

Comments
 (0)