[Multi-Thread] Support working in multi-thread environment

This commit is contained in:
Hui Yu
2020-10-27 20:33:38 +08:00
parent 0e3f44c9f3
commit 493a027b70
10 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
kubernetes/build/ kubernetes/build/
.vs/ .vs/
.vscode/
# Prerequisites # Prerequisites
*.d *.d

View File

@@ -78,6 +78,7 @@ list all pods:
basePath = NULL; basePath = NULL;
sslConfig = NULL; sslConfig = NULL;
apiKeys = NULL; apiKeys = NULL;
apiClient_unsetupGlobalEnv();
``` ```
list all pods in cluster: list all pods in cluster:
@@ -121,6 +122,7 @@ list all pods in cluster:
basePath = NULL; basePath = NULL;
sslConfig = NULL; sslConfig = NULL;
apiKeys = NULL; apiKeys = NULL;
apiClient_unsetupGlobalEnv();
``` ```

View File

@@ -59,6 +59,7 @@ int main(int argc, char *argv[])
basePath = NULL; basePath = NULL;
sslConfig = NULL; sslConfig = NULL;
apiKeys = NULL; apiKeys = NULL;
apiClient_unsetupGlobalEnv();
return 0; return 0;
} }

View File

@@ -96,5 +96,7 @@ int main(int argc, char *argv[])
apiClient_free(k8sApiClient); apiClient_free(k8sApiClient);
k8sApiClient = NULL; k8sApiClient = NULL;
apiClient_unsetupGlobalEnv();
return 0;
} }

View File

@@ -58,6 +58,7 @@ int main(int argc, char *argv[])
basePath = NULL; basePath = NULL;
sslConfig = NULL; sslConfig = NULL;
apiKeys = NULL; apiKeys = NULL;
apiClient_unsetupGlobalEnv();
return 0; return 0;
} }

View File

@@ -63,6 +63,7 @@ int main(int argc, char *argv[])
apiClient_free(k8sApiClient); apiClient_free(k8sApiClient);
k8sApiClient = NULL; k8sApiClient = NULL;
apiClient_unsetupGlobalEnv();
return rc; return rc;
} }

View File

@@ -60,6 +60,7 @@ int main(int argc, char *argv[])
basePath = NULL; basePath = NULL;
sslConfig = NULL; sslConfig = NULL;
apiKeys = NULL; apiKeys = NULL;
apiClient_unsetupGlobalEnv();
return 0; return 0;
} }

View File

@@ -59,6 +59,7 @@ int main(int argc, char *argv[])
basePath = NULL; basePath = NULL;
sslConfig = NULL; sslConfig = NULL;
apiKeys = NULL; apiKeys = NULL;
apiClient_unsetupGlobalEnv();
return 0; return 0;
} }

View File

@@ -59,6 +59,7 @@ int main(int argc, char *argv[])
basePath = NULL; basePath = NULL;
sslConfig = NULL; sslConfig = NULL;
apiKeys = NULL; apiKeys = NULL;
apiClient_unsetupGlobalEnv();
return 0; return 0;
} }

View File

@@ -105,6 +105,7 @@ int main(int argc, char *argv[])
basePath = NULL; basePath = NULL;
sslConfig = NULL; sslConfig = NULL;
apiKeys = NULL; apiKeys = NULL;
apiClient_unsetupGlobalEnv();
return 0; return 0;
} }