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:21 +0000 (13:10 +0100)
commit37b8f1e21c56996644afa38816f575b05eb483ae
treef38ee702c20c8dd0bc9d59804e594021e994dbfe
parentd62210af2e169d0818c65ff9f20ab5276693b2bf
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)
include/internal/thread_once.h