1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

599241 fix an initialization problem on Win64

as the thread_t is not an integral datatype on that platform
This commit is contained in:
Andrew W. Nosenko 2010-11-15 13:00:29 +01:00 committed by Daniel Veillard
parent 0cbeb50ee0
commit d794a84a9e

View File

@ -105,10 +105,8 @@ main(void)
for (repeat = 0;repeat < 500;repeat++) {
xmlLoadCatalog(catalog);
for (i = 0; i < num_threads; i++) {
results[i] = NULL;
tid[i] = (pthread_t) -1;
}
memset(results, 0, sizeof(*results)*num_threads);
memset(tid, 0xff, sizeof(*tid)*num_threads);
for (i = 0; i < num_threads; i++) {
ret = pthread_create(&tid[i], NULL, thread_specific_data,