Define a few internal macros for easy use of run_once functions
authorRichard Levitte <levitte@openssl.org>
Tue, 19 Jul 2016 17:38:57 +0000 (19:38 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 19 Jul 2016 21:49:54 +0000 (23:49 +0200)
commit925d17f3ee4b7f7881fa77a31524ecd9f1305242
treee5f3c2b23de04313e4ebca6837e48e0e821b20c7
parentaebb9aac486fe81fd2bd9eca7c508d305af2fbe0
Define a few internal macros for easy use of run_once functions

Because pthread_once() takes a function taking no argument and
returning nothing, and we want to be able to check if they're
successful, we define a few internal macros to get around the issue.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
include/internal/thread_once.h [new file with mode: 0644]