From ad144ad2e4220dcbf678c515e4670c094413ea6d Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sat, 12 Aug 2017 22:57:15 +0900 Subject: add blsInitThreadSafe --- include/bls/bls.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/bls') diff --git a/include/bls/bls.h b/include/bls/bls.h index f063ca6..2a9df84 100644 --- a/include/bls/bls.h +++ b/include/bls/bls.h @@ -50,6 +50,10 @@ typedef struct { @note init() is not thread safe */ BLS_DLL_API int blsInit(int curve, int maxUnitSize); +/* + wait for the finish of the first call blsInit() and do nothing +*/ +BLS_DLL_API int blsInitThreadSafe(int curve, int maxUnitSize); BLS_DLL_API size_t blsGetOpUnitSize(void); // return strlen(buf) if success else 0 -- cgit v1.2.3