Index: src/platform-nullos.cc |
=================================================================== |
--- src/platform-nullos.cc (revision 6139) |
+++ src/platform-nullos.cc (working copy) |
@@ -335,15 +335,28 @@ |
Thread::Thread() : ThreadHandle(ThreadHandle::INVALID) { |
+ set_name("v8:<unknown>"); |
UNIMPLEMENTED(); |
} |
+Thread::Thread(const char* name) : ThreadHandle(ThreadHandle::INVALID) { |
+ set_name(name); |
+ UNIMPLEMENTED(); |
+} |
+ |
+ |
Thread::~Thread() { |
UNIMPLEMENTED(); |
} |
+void Thread::set_name(const char* name) { |
+ strncpy(name_, name, sizeof(name_)); |
+ name_[sizeof(name_) - 1] = '\0'; |
+} |
+ |
+ |
void Thread::Start() { |
UNIMPLEMENTED(); |
} |