[Multi-Thread] Support working in multi-thread environment
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
kubernetes/build/
|
kubernetes/build/
|
||||||
.vs/
|
.vs/
|
||||||
|
.vscode/
|
||||||
|
|
||||||
# Prerequisites
|
# Prerequisites
|
||||||
*.d
|
*.d
|
||||||
|
|||||||
@@ -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();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,5 +96,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
apiClient_free(k8sApiClient);
|
apiClient_free(k8sApiClient);
|
||||||
k8sApiClient = NULL;
|
k8sApiClient = NULL;
|
||||||
|
apiClient_unsetupGlobalEnv();
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user