Index: src/platform-win32.cc |
=================================================================== |
--- src/platform-win32.cc (revision 10413) |
+++ src/platform-win32.cc (working copy) |
@@ -1526,12 +1526,19 @@ |
// handle until it is started. |
Thread::Thread(const Options& options) |
- : stack_size_(options.stack_size()) { |
+ : stack_size_(options.stack_size) { |
data_ = new PlatformData(kNoThread); |
- set_name(options.name()); |
+ set_name(options.name); |
} |
+Thread::Thread(const char* name) |
+ : stack_size_(0) { |
+ data_ = new PlatformData(kNoThread); |
+ set_name(name); |
+} |
+ |
+ |
void Thread::set_name(const char* name) { |
OS::StrNCpy(Vector<char>(name_, sizeof(name_)), name, strlen(name)); |
name_[sizeof(name_) - 1] = '\0'; |
@@ -1894,10 +1901,8 @@ |
class SamplerThread : public Thread { |
public: |
- static const int kSamplerThreadStackSize = 32 * KB; |
- |
explicit SamplerThread(int interval) |
- : Thread(Thread::Options("SamplerThread", kSamplerThreadStackSize)), |
+ : Thread("SamplerThread"), |
interval_(interval) {} |
static void AddActiveSampler(Sampler* sampler) { |