]> granicus.if.org Git - openssl/commit
Convert __thread to pthreads for Thread Local Storage
authorMatt Caswell <matt@openssl.org>
Fri, 13 Nov 2015 23:54:44 +0000 (23:54 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 20 Nov 2015 23:39:30 +0000 (23:39 +0000)
commit68487a9b0631d27be9a1f4565e7e652ae9cb6aad
treef08b9aedfa12d06d5602f2422def273b96f7ea2c
parent27949c353e68825f119410f8fd73ae1d667581c7
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 <rsalz@openssl.org>
12 files changed:
apps/s_client.c
apps/s_server.c
crypto/async/arch/async_null.c
crypto/async/arch/async_posix.c
crypto/async/arch/async_posix.h
crypto/async/async.c
crypto/async/async_err.c
crypto/async/async_locl.h
doc/crypto/ASYNC_start_job.pod
include/openssl/async.h
test/asynctest.c
util/libeay.num