aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls
diff options
context:
space:
mode:
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