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

Side by Side Diff: third_party/re2/util/thread.cc

Issue 1516543002: Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated update instructions Created 5 years 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
« no previous file with comments | « third_party/re2/util/thread.h ('k') | third_party/re2/util/threadwin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The RE2 Authors. All Rights Reserved. 1 // Copyright 2009 The RE2 Authors. All Rights Reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include <pthread.h> 5 #include "util/thread.h"
6
7 #include "util/util.h" 6 #include "util/util.h"
8 #include "util/thread.h"
9 7
10 Thread::Thread() { 8 Thread::Thread() {
11 pid_ = 0; 9 pid_ = 0;
12 running_ = 0; 10 running_ = 0;
13 joinable_ = 0; 11 joinable_ = 0;
14 } 12 }
15 13
16 Thread::~Thread() { 14 Thread::~Thread() {
17 } 15 }
18 16
(...skipping 16 matching lines...) Expand all
35 CHECK(joinable_); 33 CHECK(joinable_);
36 void *val; 34 void *val;
37 pthread_join(pid_, &val); 35 pthread_join(pid_, &val);
38 running_ = 0; 36 running_ = 0;
39 } 37 }
40 38
41 void Thread::SetJoinable(bool j) { 39 void Thread::SetJoinable(bool j) {
42 CHECK(!running_); 40 CHECK(!running_);
43 joinable_ = j; 41 joinable_ = j;
44 } 42 }
OLDNEW
« no previous file with comments | « third_party/re2/util/thread.h ('k') | third_party/re2/util/threadwin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698