summaryrefslogtreecommitdiffstats
path: root/remoting/base
diff options
context:
space:
mode:
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-21 03:57:12 +0000
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-21 03:57:12 +0000
commit5686b177b4c9de40440ccd60546529b8a4522cd1 (patch)
tree5724cad21e7ee040c06bf3a68c67e55237fbf404 /remoting/base
parent41cea7ac73afdc41854ddab97f8f1b00541e603d (diff)
downloadchromium_src-5686b177b4c9de40440ccd60546529b8a4522cd1.zip
chromium_src-5686b177b4c9de40440ccd60546529b8a4522cd1.tar.gz
chromium_src-5686b177b4c9de40440ccd60546529b8a4522cd1.tar.bz2
Revert 201202 "base: Support setting thread priorities generically."
Broke "sizes" by adding may static initializers. > base: Support setting thread priorities generically. > > This patch supports setting priorities across platforms > at the PlatformThread level, by stashing thread id into the > thread handle on linux/android. > > Since this adds more platform specific code, and #ifdefs > were starting to get unwieldy, all platform specific code > is moved into _platform.cc files, with the exception of the > 'default' implementation, which stay in _posix. > > BUG=170549 > > Review URL: https://chromiumcodereview.appspot.com/12741012 TBR=epenner@chromium.org Review URL: https://codereview.chromium.org/15311004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201215 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base')
-rw-r--r--remoting/base/auto_thread.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/remoting/base/auto_thread.cc b/remoting/base/auto_thread.cc
index 9890bc3..d79af49 100644
--- a/remoting/base/auto_thread.cc
+++ b/remoting/base/auto_thread.cc
@@ -92,7 +92,7 @@ AutoThread::AutoThread(const char* name)
#if defined(OS_WIN)
com_init_type_(COM_INIT_NONE),
#endif
- thread_(),
+ thread_(0),
name_(name),
was_quit_properly_(false) {
}
@@ -102,7 +102,7 @@ AutoThread::AutoThread(const char* name, AutoThreadTaskRunner* joiner)
#if defined(OS_WIN)
com_init_type_(COM_INIT_NONE),
#endif
- thread_(),
+ thread_(0),
name_(name),
was_quit_properly_(false),
joiner_(joiner) {
@@ -112,14 +112,14 @@ AutoThread::~AutoThread() {
DCHECK(!startup_data_);
// Wait for the thread to exit.
- if (!thread_.is_null()) {
+ if (thread_) {
base::PlatformThread::Join(thread_);
}
}
scoped_refptr<AutoThreadTaskRunner> AutoThread::StartWithType(
base::MessageLoop::Type type) {
- DCHECK(thread_.is_null());
+ DCHECK(!thread_);
#if defined(OS_WIN)
DCHECK(com_init_type_ != COM_INIT_STA || type == base::MessageLoop::TYPE_UI);
#endif