diff options
author | Matt Caswell <matt@openssl.org> | 2016-03-07 16:55:39 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-03-07 17:23:42 +0000 |
commit | 667867cced0013c1cfd8d7a9efa43b8f2cebc942 (patch) | |
tree | 2bf118d9a4d87308f837fecfa658d79fee4356c0 /crypto/async/arch/async_posix.c | |
parent | b8972edad65a5245645f40654b903dbcd1a4d5c1 (diff) |
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>
Diffstat (limited to 'crypto/async/arch/async_posix.c')
-rw-r--r-- | crypto/async/arch/async_posix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/async/arch/async_posix.c b/crypto/async/arch/async_posix.c index 553ec664e2..2d9e5102fc 100644 --- a/crypto/async/arch/async_posix.c +++ b/crypto/async/arch/async_posix.c @@ -60,10 +60,14 @@ #define STACKSIZE 32768 -void async_local_cleanup(void) +int ASYNC_is_capable(void) { + return 1; } +void async_local_cleanup(void) +{ +} int async_fibre_makecontext(async_fibre *fibre) { |