Add a function to detect if we have async or not

Add the ASYNC_is_capable() function and use it in speed.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Matt Caswell
2016-03-07 16:55:39 +00:00
parent b8972edad6
commit 667867cced
6 changed files with 46 additions and 33 deletions

View File

@@ -60,11 +60,15 @@
#define STACKSIZE 32768
int ASYNC_is_capable(void)
{
return 1;
}
void async_local_cleanup(void)
{
}
int async_fibre_makecontext(async_fibre *fibre)
{
fibre->env_init = 0;