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

Side by Side Diff: mojo/public/utility/thread.h

Issue 213393002: Mojo: Move public C system header files to mojo/public/c/system/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « mojo/public/utility/tests/thread_unittest.cc ('k') | mojo/system/channel.h » ('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 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_UTILITY_THREAD_H_
6 #define MOJO_PUBLIC_UTILITY_THREAD_H_ 6 #define MOJO_PUBLIC_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/system/macros.h" 15 #include "mojo/public/c/system/macros.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 18
19 // This class is thread-friendly, not thread-safe (e.g., you mustn't call 19 // This class is thread-friendly, not thread-safe (e.g., you mustn't call
20 // |Join()| from multiple threads and/or simultaneously try to destroy the 20 // |Join()| from multiple threads and/or simultaneously try to destroy the
21 // object). 21 // object).
22 class Thread { 22 class Thread {
23 public: 23 public:
24 // TODO(vtl): Support non-joinable? priority? 24 // TODO(vtl): Support non-joinable? priority?
25 class Options { 25 class Options {
(...skipping 27 matching lines...) Expand all
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_UTILITY_THREAD_H_
OLDNEW
« no previous file with comments | « mojo/public/utility/tests/thread_unittest.cc ('k') | mojo/system/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698