delete key
This commit is contained in:
@@ -39,6 +39,7 @@ void Request::initialize() {
|
||||
}
|
||||
|
||||
void Request::finish() {
|
||||
pthread_key_delete(key);
|
||||
curl_share_cleanup(curl_share);
|
||||
}
|
||||
|
||||
@@ -51,7 +52,6 @@ Request::Request(std::string url, std::function<void(platform::Response&)> bg, s
|
||||
llmr::util::threadpool->add(request, this);
|
||||
}
|
||||
|
||||
|
||||
pthread_key_t Request::key;
|
||||
pthread_once_t Request::key_once = PTHREAD_ONCE_INIT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user