+STACK_OF(ASYNC_JOB) *async_get_pool(void)
+{
+ return pool;
+}
+
+void 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;
+}
+
+void async_increment_pool_size(void)
+{
+ pool_curr_size++;
+}
+
+void async_release_job_to_pool(ASYNC_JOB *job)
+{
+ sk_ASYNC_JOB_push(pool, job);
+}
+
+size_t async_pool_max_size(void)
+{
+ return pool_max_size;
+}
+
+void async_release_pool(void)
+{
+ sk_ASYNC_JOB_free(pool);
+}
+
+int async_pool_can_grow(void)
+{
+ return (pool_max_size == 0) || (pool_curr_size < pool_max_size);
+}
+