From 68487a9b0631d27be9a1f4565e7e652ae9cb6aad Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 13 Nov 2015 23:54:44 +0000 Subject: Convert __thread to pthreads for Thread Local Storage In theory the pthreads approach for Thread Local Storage should be more portable. This also changes some APIs in order to accommodate this change. In particular ASYNC_init_pool is renamed ASYNC_init_thread and ASYNC_free_pool is renamed ASYNC_cleanup_thread. Also introduced ASYNC_init and ASYNC_cleanup. Reviewed-by: Rich Salz --- crypto/async/async_locl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/async/async_locl.h') diff --git a/crypto/async/async_locl.h b/crypto/async/async_locl.h index 1a98f36b79..0a9c59fcfb 100644 --- a/crypto/async/async_locl.h +++ b/crypto/async/async_locl.h @@ -86,6 +86,7 @@ struct async_pool_st { size_t max_size; }; +int async_thread_local_init(void); void async_start_func(void); int async_pipe(OSSL_ASYNC_FD *pipefds); int async_close_fd(OSSL_ASYNC_FD fd); -- cgit v1.2.3