diff options
author | Matt Caswell <matt@openssl.org> | 2016-03-02 16:15:52 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-03-02 17:23:42 +0000 |
commit | 224905f8aaeac7fd81a49dc160a843c5fff60e6e (patch) | |
tree | 8242952f73c72a9f234beaf3f69ce1159a542f41 /crypto/async/arch/async_posix.c | |
parent | 0c452abc162d348876e136979230a06d0d83641b (diff) |
Convert ASYNC code to use new Thread API
The async code uses thread local variables. We should convert to using
the new Thread API for doing this.
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 | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crypto/async/arch/async_posix.c b/crypto/async/arch/async_posix.c index 626471d370..553ec664e2 100644 --- a/crypto/async/arch/async_posix.c +++ b/crypto/async/arch/async_posix.c @@ -58,27 +58,12 @@ # include <stddef.h> # include <unistd.h> -pthread_key_t posixctx; -pthread_key_t posixpool; - #define STACKSIZE 32768 -int async_global_init(void) -{ - if (pthread_key_create(&posixctx, NULL) != 0 - || pthread_key_create(&posixpool, NULL) != 0) - return 0; - - return 1; -} - void async_local_cleanup(void) { } -void async_global_cleanup(void) -{ -} int async_fibre_makecontext(async_fibre *fibre) { |