OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_PUBLIC_UTILITY_THREAD_H_ | 5 #ifndef MOJO_PUBLIC_CPP_UTILITY_THREAD_H_ |
6 #define MOJO_PUBLIC_UTILITY_THREAD_H_ | 6 #define MOJO_PUBLIC_CPP_UTILITY_THREAD_H_ |
7 | 7 |
8 #ifdef _WIN32 | 8 #ifdef _WIN32 |
9 #error "Not implemented: See crbug.com/342893." | 9 #error "Not implemented: See crbug.com/342893." |
10 #endif | 10 #endif |
11 | 11 |
12 #include <pthread.h> | 12 #include <pthread.h> |
13 #include <stddef.h> | 13 #include <stddef.h> |
14 | 14 |
15 #include "mojo/public/cpp/system/macros.h" | 15 #include "mojo/public/cpp/system/macros.h" |
16 | 16 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const Options options_; | 52 const Options options_; |
53 pthread_t thread_; | 53 pthread_t thread_; |
54 bool started_; | 54 bool started_; |
55 bool joined_; | 55 bool joined_; |
56 | 56 |
57 MOJO_DISALLOW_COPY_AND_ASSIGN(Thread); | 57 MOJO_DISALLOW_COPY_AND_ASSIGN(Thread); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace mojo | 60 } // namespace mojo |
61 | 61 |
62 #endif // MOJO_PUBLIC_UTILITY_THREAD_H_ | 62 #endif // MOJO_PUBLIC_CPP_UTILITY_THREAD_H_ |
OLD | NEW |