aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-08-12 21:57:15 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-08-12 21:57:15 +0800
commitad144ad2e4220dcbf678c515e4670c094413ea6d (patch)
tree830a273bfd288f828167c5445ba15bcd1050c98e /include/bls
parentaa867dd6770e7956ff08bff55639a4f4d1d74910 (diff)
downloaddexon-bls-ad144ad2e4220dcbf678c515e4670c094413ea6d.tar
dexon-bls-ad144ad2e4220dcbf678c515e4670c094413ea6d.tar.gz
dexon-bls-ad144ad2e4220dcbf678c515e4670c094413ea6d.tar.bz2
dexon-bls-ad144ad2e4220dcbf678c515e4670c094413ea6d.tar.lz
dexon-bls-ad144ad2e4220dcbf678c515e4670c094413ea6d.tar.xz
dexon-bls-ad144ad2e4220dcbf678c515e4670c094413ea6d.tar.zst
dexon-bls-ad144ad2e4220dcbf678c515e4670c094413ea6d.zip
add blsInitThreadSafe
Diffstat (limited to 'include/bls')
-rw-r--r--include/bls/bls.h4
1 files changed, 4 insertions, 0 deletions
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