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