aboutsummaryrefslogtreecommitdiff
path: root/crypto/async/arch/async_posix.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-09-16 23:43:45 +0100
committerMatt Caswell <matt@openssl.org>2015-11-20 23:33:46 +0000
commitd63de0ebff88c4ef1d93065c4e531fdf5ed894fe (patch)
tree7d4ca66376a9ba38d1a4c279ba2dd45b422bba8d /crypto/async/arch/async_posix.c
parent5e6f9775a9db38b50c2f5487f126b58f7bfff78e (diff)
downloadopenssl-d63de0ebff88c4ef1d93065c4e531fdf5ed894fe.zip
openssl-d63de0ebff88c4ef1d93065c4e531fdf5ed894fe.tar.gz
openssl-d63de0ebff88c4ef1d93065c4e531fdf5ed894fe.tar.bz2
Implement windows async pool and notify support
Port the async pool and notify code to windows. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/async/arch/async_posix.c')
-rw-r--r--crypto/async/arch/async_posix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/async/arch/async_posix.c b/crypto/async/arch/async_posix.c
index d85a537..4333c87 100644
--- a/crypto/async/arch/async_posix.c
+++ b/crypto/async/arch/async_posix.c
@@ -120,12 +120,13 @@ STACK_OF(ASYNC_JOB) *async_get_pool(void)
return pool;
}
-void async_set_pool(STACK_OF(ASYNC_JOB) *poolin, size_t curr_size,
+int async_set_pool(STACK_OF(ASYNC_JOB) *poolin, size_t curr_size,
size_t max_size)
{
pool = poolin;
pool_curr_size = curr_size;
pool_max_size = max_size;
+ return 1;
}
void async_increment_pool_size(void)
@@ -146,6 +147,7 @@ size_t async_pool_max_size(void)
void async_release_pool(void)
{
sk_ASYNC_JOB_free(pool);
+ pool = NULL;
}
int async_pool_can_grow(void)