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

Side by Side Diff: mojo/edk/system/wait_set_dispatcher.h

Issue 2061913002: Don't call the other wait set impl dispatcher methods under mutex either. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « mojo/edk/system/dispatcher.cc ('k') | mojo/edk/system/wait_set_dispatcher.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ 5 #ifndef MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_
6 #define MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ 6 #define MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_
7 7
8 #include "mojo/edk/system/dispatcher.h" 8 #include "mojo/edk/system/dispatcher.h"
9 #include "mojo/public/cpp/system/macros.h" 9 #include "mojo/public/cpp/system/macros.h"
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool SupportsEntrypointClass(EntrypointClass entrypoint_class) const override; 47 bool SupportsEntrypointClass(EntrypointClass entrypoint_class) const override;
48 48
49 private: 49 private:
50 WaitSetDispatcher(); 50 WaitSetDispatcher();
51 ~WaitSetDispatcher() override; 51 ~WaitSetDispatcher() override;
52 52
53 // |Dispatcher| protected methods: 53 // |Dispatcher| protected methods:
54 util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock( 54 util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock(
55 MessagePipe* message_pipe, 55 MessagePipe* message_pipe,
56 unsigned port) override; 56 unsigned port) override;
57 MojoResult WaitSetAddImplNoLock( 57 MojoResult WaitSetAddImpl(UserPointer<const MojoWaitSetAddOptions> options,
58 UserPointer<const MojoWaitSetAddOptions> options, 58 Handle&& handle,
59 Handle&& handle, 59 MojoHandleSignals signals,
60 MojoHandleSignals signals, 60 uint64_t cookie) override;
61 uint64_t cookie) override; 61 MojoResult WaitSetRemoveImpl(uint64_t cookie) override;
62 MojoResult WaitSetRemoveImplNoLock(uint64_t cookie) override;
63 MojoResult WaitSetWaitImpl(MojoDeadline deadline, 62 MojoResult WaitSetWaitImpl(MojoDeadline deadline,
64 UserPointer<uint32_t> num_results, 63 UserPointer<uint32_t> num_results,
65 UserPointer<MojoWaitSetResult> results, 64 UserPointer<MojoWaitSetResult> results,
66 UserPointer<uint32_t> max_results) override; 65 UserPointer<uint32_t> max_results) override;
67 66
68 private: 67 private:
69 MOJO_DISALLOW_COPY_AND_ASSIGN(WaitSetDispatcher); 68 MOJO_DISALLOW_COPY_AND_ASSIGN(WaitSetDispatcher);
70 }; 69 };
71 70
72 } // namespace system 71 } // namespace system
73 } // namespace mojo 72 } // namespace mojo
74 73
75 #endif // MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ 74 #endif // MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/dispatcher.cc ('k') | mojo/edk/system/wait_set_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698