Chromium Code Reviews| Index: src/platform.h |
| diff --git a/src/platform.h b/src/platform.h |
| index fea16c8d471a4b6c9aca94dc0eb09ce742962d60..14c1d209bcb4ef7b080eb6c984ef2ac0ab10ed42 100644 |
| --- a/src/platform.h |
| +++ b/src/platform.h |
| @@ -354,40 +354,6 @@ class VirtualMemory { |
| size_t size_; // Size of the virtual memory. |
| }; |
| - |
| -// ---------------------------------------------------------------------------- |
| -// ThreadHandle |
| -// |
| -// A ThreadHandle represents a thread identifier for a thread. The ThreadHandle |
| -// does not own the underlying os handle. Thread handles can be used for |
| -// refering to threads and testing equality. |
| - |
| -class ThreadHandle { |
| - public: |
| - enum Kind { SELF, INVALID }; |
| - explicit ThreadHandle(Kind kind); |
| - |
| - // Destructor. |
| - ~ThreadHandle(); |
| - |
| - // Test for thread running. |
| - bool IsSelf() const; |
| - |
| - // Test for valid thread handle. |
| - bool IsValid() const; |
| - |
| - // Get platform-specific data. |
| - class PlatformData; |
| - PlatformData* thread_handle_data() { return data_; } |
| - |
| - // Initialize the handle to kind |
| - void Initialize(Kind kind); |
| - |
| - private: |
| - PlatformData* data_; // Captures platform dependent data. |
| -}; |
| - |
| - |
| // ---------------------------------------------------------------------------- |
| // Thread |
| // |
| @@ -396,7 +362,7 @@ class ThreadHandle { |
| // thread. The Thread object should not be deallocated before the thread has |
| // terminated. |
| -class Thread: public ThreadHandle { |
| +class Thread { |
| public: |
| // Opaque data type for thread-local storage keys. |
| // LOCAL_STORAGE_KEY_MIN_VALUE and LOCAL_STORAGE_KEY_MAX_VALUE are specified |
| @@ -468,11 +434,16 @@ class Thread: public ThreadHandle { |
| // The thread name length is limited to 16 based on Linux's implementation of |
| // prctl(). |
| static const int kMaxThreadNameLength = 16; |
| + |
| + class PlatformData; |
| + PlatformData* data() { return data_; } |
| + |
| private: |
| void set_name(const char *name); |
| - class PlatformData; |
| + |
|
Vitaly Repeshko
2011/04/11 19:28:52
nit: Delete one blank line.
Dmitry Lomov
2011/04/11 21:41:14
Done.
|
| PlatformData* data_; |
| + |
| Isolate* isolate_; |
| char name_[kMaxThreadNameLength]; |
| int stack_size_; |