OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 #ifndef LIBRARIES_NACL_MOUNTS_CONSOLE_JSPIPEMOUNT_H_ | 6 #ifndef LIBRARIES_NACL_MOUNTS_CONSOLE_JSPIPEMOUNT_H_ |
7 #define LIBRARIES_NACL_MOUNTS_CONSOLE_JSPIPEMOUNT_H_ | 7 #define LIBRARIES_NACL_MOUNTS_CONSOLE_JSPIPEMOUNT_H_ |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 #include "../base/BaseMount.h" | 12 #include "../base/BaseMount.h" |
13 #include "../util/SimpleAutoLock.h" | 13 #include "../util/PthreadHelpers.h" |
14 #include "../util/macros.h" | 14 #include "../util/macros.h" |
15 | 15 |
16 // Interface for outbound pipe pool. | 16 // Interface for outbound pipe pool. |
17 class JSOutboundPipeBridge { | 17 class JSOutboundPipeBridge { |
18 public: | 18 public: |
19 JSOutboundPipeBridge() {} | 19 JSOutboundPipeBridge() {} |
20 virtual ~JSOutboundPipeBridge() {} | 20 virtual ~JSOutboundPipeBridge() {} |
21 | 21 |
22 // Called by JSPipeMount to write to the bridge. | 22 // Called by JSPipeMount to write to the bridge. |
23 // Arguments: | 23 // Arguments: |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 pthread_mutex_t incoming_lock_; | 85 pthread_mutex_t incoming_lock_; |
86 pthread_cond_t incoming_available_; | 86 pthread_cond_t incoming_available_; |
87 std::string prefix_; | 87 std::string prefix_; |
88 bool using_pseudo_thread_; | 88 bool using_pseudo_thread_; |
89 bool pseudo_thread_blocked_; | 89 bool pseudo_thread_blocked_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(JSPipeMount); | 91 DISALLOW_COPY_AND_ASSIGN(JSPipeMount); |
92 }; | 92 }; |
93 | 93 |
94 #endif // LIBRARIES_NACL_MOUNTS_CONSOLE_JSPIPEMOUNT_H_ | 94 #endif // LIBRARIES_NACL_MOUNTS_CONSOLE_JSPIPEMOUNT_H_ |
OLD | NEW |