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

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

Issue 1544433002: Replace RE2 import with a dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-Added LICENSE and OWNERS file 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/test.cc ('k') | third_party/re2/util/thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2009 The RE2 Authors. All Rights Reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 #ifndef RE2_UTIL_THREAD_H__
6 #define RE2_UTIL_THREAD_H__
7
8 #ifdef _WIN32
9 #include <windows.h>
10 #else
11 #include <pthread.h>
12 #endif
13
14 class Thread {
15 public:
16 Thread();
17 virtual ~Thread();
18 void Start();
19 void Join();
20 void SetJoinable(bool);
21 virtual void Run() = 0;
22
23 private:
24 #ifdef _WIN32
25 HANDLE pid_;
26 #else
27 pthread_t pid_;
28 #endif
29 bool running_;
30 bool joinable_;
31 };
32
33 #endif // RE2_UTIL_THREAD_H__
OLDNEW
« no previous file with comments | « third_party/re2/util/test.cc ('k') | third_party/re2/util/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698