Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/platform-nullos.cc

Issue 6070009: Added labelled thread names to help with some debugging activity. Right now,... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/platform-macos.cc ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 } 328 }
329 329
330 330
331 bool ThreadHandle::IsValid() const { 331 bool ThreadHandle::IsValid() const {
332 UNIMPLEMENTED(); 332 UNIMPLEMENTED();
333 return false; 333 return false;
334 } 334 }
335 335
336 336
337 Thread::Thread() : ThreadHandle(ThreadHandle::INVALID) { 337 Thread::Thread() : ThreadHandle(ThreadHandle::INVALID) {
338 set_name("v8:<unknown>");
339 UNIMPLEMENTED();
340 }
341
342
343 Thread::Thread(const char* name) : ThreadHandle(ThreadHandle::INVALID) {
344 set_name(name);
338 UNIMPLEMENTED(); 345 UNIMPLEMENTED();
339 } 346 }
340 347
341 348
342 Thread::~Thread() { 349 Thread::~Thread() {
343 UNIMPLEMENTED(); 350 UNIMPLEMENTED();
344 } 351 }
345 352
346 353
354 void Thread::set_name(const char* name) {
355 strncpy(name_, name, sizeof(name_));
356 name_[sizeof(name_) - 1] = '\0';
357 }
358
359
347 void Thread::Start() { 360 void Thread::Start() {
348 UNIMPLEMENTED(); 361 UNIMPLEMENTED();
349 } 362 }
350 363
351 364
352 void Thread::Join() { 365 void Thread::Join() {
353 UNIMPLEMENTED(); 366 UNIMPLEMENTED();
354 } 367 }
355 368
356 369
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 } 483 }
471 484
472 485
473 void ProfileSampler::Stop() { 486 void ProfileSampler::Stop() {
474 UNIMPLEMENTED(); 487 UNIMPLEMENTED();
475 } 488 }
476 489
477 #endif // ENABLE_LOGGING_AND_PROFILING 490 #endif // ENABLE_LOGGING_AND_PROFILING
478 491
479 } } // namespace v8::internal 492 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-macos.cc ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698