forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Join all threads at end of main thread
Require reorganizing the isolates somewhat. Add a very simple test.
- Loading branch information
1 parent
4d02e77
commit 2684765
Showing
4 changed files
with
107 additions
and
82 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
console.log("count: %d", process._countIsolate()); | ||
|
||
if (process.tid === 1) { | ||
var isolate = process._newIsolate(process.argv); | ||
//process._joinIsolate(isolate); | ||
console.error("master"); | ||
console.log("count: %d", process._countIsolate()); | ||
} else { | ||
console.error("FUCK YEAH!"); | ||
console.log("count: %d", process._countIsolate()); | ||
} |