Re-generate the client to merge the multi-thread support from
openapi-generator
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user