| OLD | NEW |
| 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(Isolate* isolate) | 337 Thread::Thread(Isolate* isolate) |
| 338 : ThreadHandle(ThreadHandle::INVALID), | 338 : ThreadHandle(ThreadHandle::INVALID), |
| 339 isolate_(isolate) { | 339 isolate_(isolate) { |
| 340 set_name("v8:<unknown>"); |
| 341 UNIMPLEMENTED(); |
| 342 } |
| 343 |
| 344 |
| 345 Thread::Thread(Isolate* isolate, const char* name) |
| 346 : ThreadHandle(ThreadHandle::INVALID), |
| 347 isolate_(isolate) { |
| 348 set_name(name); |
| 340 UNIMPLEMENTED(); | 349 UNIMPLEMENTED(); |
| 341 } | 350 } |
| 342 | 351 |
| 343 | 352 |
| 344 Thread::~Thread() { | 353 Thread::~Thread() { |
| 345 UNIMPLEMENTED(); | 354 UNIMPLEMENTED(); |
| 346 } | 355 } |
| 347 | 356 |
| 348 | 357 |
| 358 void Thread::set_name(const char* name) { |
| 359 strncpy(name_, name, sizeof(name_)); |
| 360 name_[sizeof(name_) - 1] = '\0'; |
| 361 } |
| 362 |
| 363 |
| 349 void Thread::Start() { | 364 void Thread::Start() { |
| 350 UNIMPLEMENTED(); | 365 UNIMPLEMENTED(); |
| 351 } | 366 } |
| 352 | 367 |
| 353 | 368 |
| 354 void Thread::Join() { | 369 void Thread::Join() { |
| 355 UNIMPLEMENTED(); | 370 UNIMPLEMENTED(); |
| 356 } | 371 } |
| 357 | 372 |
| 358 | 373 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 } | 487 } |
| 473 | 488 |
| 474 | 489 |
| 475 void ProfileSampler::Stop() { | 490 void ProfileSampler::Stop() { |
| 476 UNIMPLEMENTED(); | 491 UNIMPLEMENTED(); |
| 477 } | 492 } |
| 478 | 493 |
| 479 #endif // ENABLE_LOGGING_AND_PROFILING | 494 #endif // ENABLE_LOGGING_AND_PROFILING |
| 480 | 495 |
| 481 } } // namespace v8::internal | 496 } } // namespace v8::internal |
| OLD | NEW |