Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: src/platform-solaris.cc

Issue 10231004: Remove unused variable in src/platform-solaris.cc. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 } 480 }
481 481
482 482
483 void Thread::set_name(const char* name) { 483 void Thread::set_name(const char* name) {
484 strncpy(name_, name, sizeof(name_)); 484 strncpy(name_, name, sizeof(name_));
485 name_[sizeof(name_) - 1] = '\0'; 485 name_[sizeof(name_) - 1] = '\0';
486 } 486 }
487 487
488 488
489 void Thread::Start() { 489 void Thread::Start() {
490 pthread_attr_t* attr_ptr = NULL;
491 pthread_attr_t attr; 490 pthread_attr_t attr;
492 if (stack_size_ > 0) { 491 if (stack_size_ > 0) {
493 pthread_attr_init(&attr); 492 pthread_attr_init(&attr);
494 pthread_attr_setstacksize(&attr, static_cast<size_t>(stack_size_)); 493 pthread_attr_setstacksize(&attr, static_cast<size_t>(stack_size_));
495 attr_ptr = &attr;
496 } 494 }
497 pthread_create(&data_->thread_, NULL, ThreadEntry, this); 495 pthread_create(&data_->thread_, NULL, ThreadEntry, this);
498 ASSERT(data_->thread_ != kNoThread); 496 ASSERT(data_->thread_ != kNoThread);
499 } 497 }
500 498
501 499
502 void Thread::Join() { 500 void Thread::Join() {
503 pthread_join(data_->thread_, NULL); 501 pthread_join(data_->thread_, NULL);
504 } 502 }
505 503
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 } 894 }
897 895
898 896
899 void Sampler::Stop() { 897 void Sampler::Stop() {
900 ASSERT(IsActive()); 898 ASSERT(IsActive());
901 SignalSender::RemoveActiveSampler(this); 899 SignalSender::RemoveActiveSampler(this);
902 SetActive(false); 900 SetActive(false);
903 } 901 }
904 902
905 } } // namespace v8::internal 903 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698