Add ASYNC_block_pause and ASYNC_unblock_pause
authorMatt Caswell <matt@openssl.org>
Thu, 12 Nov 2015 10:42:08 +0000 (10:42 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 20 Nov 2015 23:37:17 +0000 (23:37 +0000)
commite8dfb5bf8e525c9799820d01b2df5fde098a9c4c
tree3f8dc36c25a36b3bf07d55cea8cccdd2a993b716
parentf4511d4897f56a18a2a681e2ade8063658ff2cbb
Add ASYNC_block_pause and ASYNC_unblock_pause

There are potential deadlock situations that can occur if code executing
within the context of a job aquires a lock, and then pauses the job. This
adds an ability to temporarily block pauses from occuring whilst performing
work and holding a lock.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/async/async.c
crypto/async/async_locl.h
doc/crypto/ASYNC_start_job.pod
include/openssl/async.h
test/asynctest.c
util/libeay.num