Implement windows async pool and notify support

Port the async pool and notify code to windows.

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Matt Caswell
2015-09-16 23:43:45 +01:00
parent 5e6f9775a9
commit d63de0ebff
6 changed files with 121 additions and 13 deletions

View File

@@ -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)