Re-generate the client to merge the multi-thread support from

openapi-generator
This commit is contained in:
Hui Yu
2020-10-30 18:58:39 +08:00
parent 916f56cacb
commit e8e2625aa5
2 changed files with 19 additions and 4 deletions

View File

@@ -45,4 +45,16 @@ void sslConfig_free(sslConfig_t *sslConfig);
char *strReplace(char *orig, char *rep, char *with);
/*
* In single thread program, the function apiClient_setupGlobalEnv is not needed.
* But in multi-thread program, apiClient_setupGlobalEnv must be called before any worker thread is created
*/
void apiClient_setupGlobalEnv();
/*
* This function apiClient_unsetupGlobalEnv must be called whether single or multiple program.
* In multi-thread program, it is must be called after all worker threads end.
*/
void apiClient_unsetupGlobalEnv();
#endif // INCLUDE_API_CLIENT_H