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#include <lib/async/default.h>
6
7#include <threads.h>
8
9static thread_local async_dispatcher_t* g_default;
10
11async_dispatcher_t* async_get_default_dispatcher(void) {
12    return g_default;
13}
14
15void async_set_default_dispatcher(async_dispatcher_t* dispatcher) {
16    g_default = dispatcher;
17}
18