-[Version] maps-plugin-mapzen_0.0.7
-[Date] 24 Nov 2017
-[Title] Fix crashes when terminating threads
-[Developer] Seechan Kim <cbible.kim@samsung.com>
-
[Version] maps-plugin-mapzen_0.0.6
[Date] 30 Oct 2017
[Title] Revise timeout limits for downloading map tiles.
}
}
-
- struct timeval now;
- struct timespec timeout;
- gettimeofday(&now, NULL);
- timeout.tv_sec = now.tv_sec + 3;
- timeout.tv_nsec = now.tv_usec * 1000;
-
- pthread_mutex_lock(&__curl_deliver_mutex);
- if (__thread_running_for_curlmulti && !__MultiCurlArgsRemain)
- pthread_cond_timedwait(&__curl_delivered_cond, &__curl_deliver_mutex, &timeout);
- pthread_mutex_unlock(&__curl_deliver_mutex);
+ if (__thread_running_for_curlmulti && !__MultiCurlArgsRemain) {
+ pthread_mutex_lock(&__curl_deliver_mutex);
+ pthread_cond_wait(&__curl_delivered_cond, &__curl_deliver_mutex);
+ pthread_mutex_unlock(&__curl_deliver_mutex);
+ }
}
#else
pthread_cond_signal(&__curl_delivered_cond);
pthread_mutex_unlock(&__curl_deliver_mutex);
- //pthread_cancel(__CurlThread);
+ pthread_cancel(__CurlThread);
pthread_join(__CurlThread, NULL);