aboutsummaryrefslogtreecommitdiff
path: root/crypto/async/arch/async_posix.c
AgeCommit message (Collapse)AuthorFilesLines
2015-11-20Swap to using proper windows pipesMatt Caswell1-3/+3
We were using _pipe to create a pipe on windows. This uses the "int" type for its file descriptor for compatibility. However most windows functions expect to use a "HANDLE". Probably we could get away with just casting but it seems more robust to use the proper type and main stream windows functions. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-20Fix some style issuesMatt Caswell1-1/+2
There were a number of places where the async code did not conform to the OpenSSL coding style. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-20Fix clang errorsMatt Caswell1-13/+17
Make clang build without errors in the async code Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-20Normalise ASYNC namingMatt Caswell1-4/+4
Tidied up the naming of functions and structures to be consistent Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-20Implement windows async pool and notify supportMatt Caswell1-1/+3
Port the async pool and notify code to windows. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-20Implement local thread poolsMatt Caswell1-0/+42
Implement the ASYNC_JOB as a local thread pool. Remove the API support for global pools. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-20Initial Async notify code changesMatt Caswell1-0/+26
Initial API implemented for notifying applications that an ASYNC_JOB has completed. Currently only s_server is using this. The Dummy Async engine "cheats" in that it notifies that it has completed *before* it pauses the job. A normal async engine would not do that. Only the posix version of this has been implemented so far, so it will probably fail to compile on Windows at the moment. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-20Use longjmp at setjmp where possibleMatt Caswell1-0/+1
Where we can we should use longjmp and setjmp in preference to swapcontext/ setcontext as they seem to be more performant. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-20Increase stack sizeMatt Caswell1-2/+4
Some assembler code puts a lot of stuff on the stack, so up the stack size. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-20Async port to windowsMatt Caswell1-0/+85
Reviewed-by: Rich Salz <rsalz@openssl.org>