Clarify what RUN_ONCE returns
authorRichard Levitte <levitte@openssl.org>
Thu, 12 Jan 2017 22:13:17 +0000 (23:13 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 13 Jan 2017 12:10:59 +0000 (13:10 +0100)
commitba2efdc9ed75659a75d8b8c3cd4ae5bd3c181c65
treeab115817d396b565966169c218f9ee9d0c850ac8
parent08c2da0d6a19b5b9a501ff93641cb2ece5b6b6f0
Clarify what RUN_ONCE returns

RUN_ONCE really just returns 0 on failure or whatever the init
function returned.  By convention, however, the init function must
return 0 on failure and 1 on success.  This needed to be clarified.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2225)
(cherry picked from commit 37b8f1e21c56996644afa38816f575b05eb483ae)
include/internal/thread_once.h