From c91373fba3ab03a82f73092c22338dd0e88b2f70 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 18 Jun 2020 13:42:04 +0100 Subject: [PATCH] Docs: add section about worker threads --- docs/install.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/install.md b/docs/install.md index 0917c2a8..8546523a 100644 --- a/docs/install.md +++ b/docs/install.md @@ -177,3 +177,10 @@ npx electron-rebuild Further help can be found at [https://electronjs.org/docs/tutorial/using-native-node-modules](https://electronjs.org/docs/tutorial/using-native-node-modules) + +## Worker threads + +The main thread must call `require('sharp')` +before worker threads are created +to ensure shared libraries remain loaded in memory +until after all threads are complete.