-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lslib_utils is worker_thread friendly
- Loading branch information
Showing
6 changed files
with
121 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
// const { CREATE_LOGGER, raiseError, raiseInfo } = require('../support_files/log_utils.js'); | ||
// const bg3mh_logger = CREATE_LOGGER(); | ||
const { parentPort } = require('node:worker_threads'); | ||
const { CREATE_LOGGER, raiseError, raiseInfo } = require('../support_files/log_utils.js'); | ||
const bg3mh_logger = CREATE_LOGGER(); | ||
const { parentPort, workerData } = require('node:worker_threads'); | ||
const path = require('node:path'); | ||
const fs = require('node:fs'); | ||
const { LOAD_LSLIB } = require('../support_files/lslib_utils.js') | ||
|
||
|
||
parentPort.once('message', (message) => { | ||
let messageParsed = JSON.parse(message); | ||
parentPort.once('message', async () => { | ||
raiseInfo(`lookee lslib @ ${workerData.lslibPath}`) | ||
parentPort.postMessage("i got the workerData bitchhhhhhh"); | ||
|
||
let rootModPath = messageParsed.rootModPath; | ||
parentPort.postMessage(rootModPath); | ||
/*try { | ||
let LSLIB = await LOAD_LSLIB(); | ||
} catch (Error) { | ||
raiseError(Error); | ||
}*/ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters