Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / third_party / re2 / util / thread.h
blobb9610e045895de51dfa9186da3293e26401ad89d
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.
5 #ifndef RE2_UTIL_THREAD_H__
6 #define RE2_UTIL_THREAD_H__
8 #include <pthread.h>
10 class Thread {
11 public:
12 Thread();
13 virtual ~Thread();
14 void Start();
15 void Join();
16 void SetJoinable(bool);
17 virtual void Run() = 0;
19 private:
20 pthread_t pid_;
21 bool running_;
22 bool joinable_;
25 #endif // RE2_UTIL_THREAD_H__