Skip to content

Commit

Permalink
testing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
khbsd committed May 22, 2024
1 parent e397815 commit 29a1ef5
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions commands/debug2.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,12 @@ const bg3mh_logger = CREATE_LOGGER();
const debug2 = vscode.commands.registerCommand('bg3-mod-helper.debug2Command', async function () {
const config = getConfig();
const localizationPath = path.join(config.rootModPath, 'Localization');
let coreCount = os.availableParallelism();
let halfCoreCount = os.availableParallelism() / 2;

raiseInfo(`half of your cpu's cores: ${coreCount / 2}`);
raiseInfo(`half of your cpu's cores: ${halfCoreCount}`);



if (isMainThread) {
const testWorker = new Worker(__filename);

console.log("in main thread");

testWorker.on('message', (msg) => {
console.log(msg);
});
}
else {
console.log("in worker thread");
parentPort.postMessage("hi");
}

// after you are through with this command, the following line must be uncommented and the only thing left for this file to be considered cleaned up.
// raiseInfo("hi dipshit :)");
Expand Down

0 comments on commit 29a1ef5

Please sign in to comment.