mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
src: use node- prefix on thread names
PR-URL: https://github.com/nodejs/node/pull/61307 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
1 parent
3cdb1cd437
commit
daeafc06f9
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -1234,7 +1234,7 @@ InitializeOncePerProcessInternal(const std::vector<std::string>& args,
|
||||
}
|
||||
|
||||
if (!(flags & ProcessInitializationFlags::kNoInitializeNodeV8Platform)) {
|
||||
uv_thread_setname("MainThread");
|
||||
uv_thread_setname("node-MainThread");
|
||||
per_process::v8_platform.Initialize(
|
||||
static_cast<int>(per_process::cli_options->v8_thread_pool_size));
|
||||
result->platform_ = per_process::v8_platform.Platform();
|
||||
|
||||
@@ -49,7 +49,7 @@ static void PrintSourceLocation(const v8::SourceLocation& location) {
|
||||
}
|
||||
|
||||
static void PlatformWorkerThread(void* data) {
|
||||
uv_thread_setname("V8Worker");
|
||||
uv_thread_setname("node-V8Worker");
|
||||
std::unique_ptr<PlatformWorkerData>
|
||||
worker_data(static_cast<PlatformWorkerData*>(data));
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ const bindingPath = require.resolve(`./build/${common.buildType}/binding`);
|
||||
const binding = require(bindingPath);
|
||||
|
||||
if (isMainThread) {
|
||||
assert.strictEqual(binding.getThreadName(), 'MainThread');
|
||||
assert.strictEqual(binding.getThreadName(), 'node-MainThread');
|
||||
|
||||
const worker = new Worker(__filename);
|
||||
worker.on('message', common.mustCall((data) => {
|
||||
|
||||
Reference in new issue
Block a user