1// Copyright 2017 The Fuchsia Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef LIB_ASYNC_DEFAULT_H_ 6#define LIB_ASYNC_DEFAULT_H_ 7 8#include <lib/async/dispatcher.h> 9#include <zircon/compiler.h> 10 11__BEGIN_CDECLS 12 13// Gets the current thread's default asynchronous dispatcher interface. 14// Returns |NULL| if none. 15__EXPORT async_dispatcher_t* async_get_default_dispatcher(void); 16 17// Sets the current thread's default asynchronous dispatcher interface. 18// May be set to |NULL| if this thread doesn't have a default dispatcher. 19__EXPORT void async_set_default_dispatcher(async_dispatcher_t* dispatcher); 20 21__END_CDECLS 22 23#endif // LIB_ASYNC_DEFAULT_H_ 24