blob: bc3b91a9c39dc2cd71e3854ca247f3a2fdc05444 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <lib/async/dispatcher.h>
__BEGIN_CDECLS
// Gets the current thread's default asynchronous dispatcher interface.
// Returns |NULL| if none.
async_t* async_get_default(void);
// Sets the current thread's default asynchronous dispatcher interface.
// May be set to |NULL| if this thread doesn't have a default dispatcher.
void async_set_default(async_t* async);
__END_CDECLS