Searched refs:AsyncWaiter (Results 1 - 23 of 23) sorted by relevance

/external/chromium_org/device/serial/
H A Dasync_waiter.cc9 AsyncWaiter::AsyncWaiter(mojo::Handle handle, function in class:device::AsyncWaiter
18 &AsyncWaiter::WaitComplete,
22 AsyncWaiter::~AsyncWaiter() {
28 void AsyncWaiter::WaitComplete(void* waiter, MojoResult result) {
29 static_cast<AsyncWaiter*>(waiter)->WaitCompleteInternal(result);
32 void AsyncWaiter::WaitCompleteInternal(MojoResult result) {
H A Dasync_waiter.h16 // result. If the AsyncWaiter is deleted before the handle is ready, the wait is
18 class AsyncWaiter { class in namespace:device
22 AsyncWaiter(mojo::Handle handle,
25 ~AsyncWaiter();
35 DISALLOW_COPY_AND_ASSIGN(AsyncWaiter);
H A Ddata_receiver.h17 class AsyncWaiter;
97 scoped_ptr<AsyncWaiter> waiter_;
H A Ddata_sender.h19 class AsyncWaiter;
90 scoped_ptr<AsyncWaiter> waiter_;
H A Ddata_sink_receiver.h20 class AsyncWaiter;
98 scoped_ptr<AsyncWaiter> waiter_;
H A Ddata_source_sender.h16 class AsyncWaiter;
81 scoped_ptr<AsyncWaiter> waiter_;
H A Ddata_receiver.cc215 waiter_.reset(new AsyncWaiter(
H A Ddata_sender.cc171 waiter_.reset(new AsyncWaiter(
H A Ddata_sink_receiver.cc137 new AsyncWaiter(handle_.get(),
H A Ddata_source_sender.cc120 new AsyncWaiter(handle_.get(),
/external/chromium_org/extensions/renderer/resources/
H A Dasync_waiter.js13 * @callback module:async_waiter.AsyncWaiter.Callback
21 * @param {module:async_waiter.AsyncWaiter.Callback} callback The callback to
24 * @alias module:async_waiter.AsyncWaiter
26 function AsyncWaiter(handle, signals, callback) {
43 * |[handle_]{@link module:async_waiter.AsyncWaiter#handle_}| is ready.
44 * @type {module:async_waiter.AsyncWaiter.Callback}
55 AsyncWaiter.prototype.start = function() {
65 AsyncWaiter.prototype.stop = function() {
74 * Returns whether this {@link AsyncWaiter} is waiting.
75 * @return {boolean} Whether this AsyncWaiter i
[all...]
H A Ddata_receiver.js180 * @type {!module:async_waiter.AsyncWaiter}
183 this.waiter_ = new asyncWaiter.AsyncWaiter(this.receivePipe_,
H A Ddata_sender.js250 * @type {!module:async_waiter.AsyncWaiter}
253 this.waiter_ = new asyncWaiter.AsyncWaiter(
/external/chromium_org/mojo/public/java/system/src/org/chromium/mojo/system/
H A DAsyncWaiter.java10 * A class which implements the {@link AsyncWaiter} allows asynchronously waiting on a background
13 public interface AsyncWaiter { interface
23 * Must be called from the same thread as {@link AsyncWaiter#asyncWait} was called from.
29 * Callback passed to {@link AsyncWaiter#asyncWait}.
H A DCore.java191 * Returns a default implementation of {@link AsyncWaiter}.
193 public AsyncWaiter getDefaultAsyncWaiter();
/external/chromium_org/base/synchronization/
H A Dwaitable_event_watcher.h22 class AsyncWaiter;
103 AsyncWaiter* waiter_;
H A Dwaitable_event_watcher_posix.cc18 // The basic design is that we add an AsyncWaiter to the wait-list of the event.
19 // That AsyncWaiter has a pointer to MessageLoop, and a Task to be posted to it.
57 // fired. An AsyncWaiter may only be in a single wait-list.
59 class AsyncWaiter : public WaitableEvent::Waiter { class in namespace:base
61 AsyncWaiter(MessageLoop* message_loop, function in class:base::AsyncWaiter
78 // We can always return true because an AsyncWaiter is never in two
171 waiter_ = new AsyncWaiter(current_ml, internal_callback_, cancel_flag_.get());
214 // pointer values then it's possible that the AsyncWaiter could have been
217 // AsyncWaiter and remove it.
/external/chromium_org/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
H A DBindingsHelper.java7 import org.chromium.mojo.system.AsyncWaiter;
116 * Returns an {@link AsyncWaiter} to use with the given handle, or <code>null</code> if none if
119 static AsyncWaiter getDefaultAsyncWaiterForHandle(Handle handle) {
H A DConnector.java7 import org.chromium.mojo.system.AsyncWaiter;
39 private final AsyncWaiter mAsyncWaiter;
49 private AsyncWaiter.Cancellable mCancellable;
58 * {@link AsyncWaiter} from the {@link Core} implementation of |messagePipeHandle|.
65 * Create a new connector over a |messagePipeHandle| using the given {@link AsyncWaiter} to get
68 public Connector(MessagePipeHandle messagePipeHandle, AsyncWaiter asyncWaiter) {
140 private class AsyncWaiterCallback implements AsyncWaiter.Callback {
143 * @see org.chromium.mojo.system.AsyncWaiter.Callback#onResult(int)
151 * @see org.chromium.mojo.system.AsyncWaiter.Callback#onError(MojoException)
161 * @see org.chromium.mojo.system.AsyncWaiter
[all...]
H A DExecutorFactory.java7 import org.chromium.mojo.system.AsyncWaiter;
8 import org.chromium.mojo.system.AsyncWaiter.Callback;
60 * The {@link AsyncWaiter} to get notified of new message availability on |mReadHandle|.
62 private final AsyncWaiter mWaiter;
H A DRouterImpl.java7 import org.chromium.mojo.system.AsyncWaiter;
63 * Constructor that will use the default {@link AsyncWaiter}.
75 * @param asyncWaiter the {@link AsyncWaiter} to use to get notification of new messages on the
78 public RouterImpl(MessagePipeHandle messagePipeHandle, AsyncWaiter asyncWaiter) {
/external/chromium_org/mojo/android/system/src/org/chromium/mojo/system/impl/
H A DCoreImpl.java9 import org.chromium.mojo.system.AsyncWaiter;
33 public class CoreImpl implements Core, AsyncWaiter {
185 public AsyncWaiter getDefaultAsyncWaiter() {
190 * @see AsyncWaiter#asyncWait(Handle, Core.HandleSignals, long, Callback)
485 * Implementation of {@link org.chromium.mojo.system.AsyncWaiter.Cancellable}.
487 private class AsyncWaiterCancellableImpl implements AsyncWaiter.Cancellable {
499 * @see org.chromium.mojo.system.AsyncWaiter.Cancellable#cancel()
525 AsyncWaiter.Callback callback,
668 long deadline, AsyncWaiter.Callback callback);
/external/chromium_org/mojo/android/javatests/src/org/chromium/mojo/system/impl/
H A DCoreImplTest.java10 import org.chromium.mojo.system.AsyncWaiter;
11 import org.chromium.mojo.system.AsyncWaiter.Callback;
12 import org.chromium.mojo.system.AsyncWaiter.Cancellable;
581 * Testing core {@link AsyncWaiter} implementation.
607 * Testing core {@link AsyncWaiter} implementation.
637 * Testing core {@link AsyncWaiter} implementation.
668 * Testing core {@link AsyncWaiter} implementation.
693 * Testing core {@link AsyncWaiter} implementation.
729 * Testing core {@link AsyncWaiter} implementation.

Completed in 197 milliseconds