2 * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 /* This must be the first #include file */
11 #include "../async_locl.h"
16 # include "internal/cryptlib.h"
18 int ASYNC_is_capable(void)
23 void async_local_cleanup(void)
25 async_ctx *ctx = async_get_ctx();
27 async_fibre *fibre = &ctx->dispatcher;
28 if (fibre != NULL && fibre->fibre != NULL && fibre->converted) {
29 ConvertFiberToThread();
35 int async_fibre_init_dispatcher(async_fibre *fibre)
37 fibre->fibre = ConvertThreadToFiber(NULL);
38 if (fibre->fibre == NULL) {
40 fibre->fibre = GetCurrentFiber();
41 if (fibre->fibre == NULL)
50 VOID CALLBACK async_start_func_win(PVOID unused)