Changeset 3283 in orxonox.OLD for orxonox/branches/updater/src/gui
- Timestamp:
- Dec 26, 2004, 12:24:18 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_update.cc
r3282 r3283 318 318 void* OrxonoxGuiUpdate::downloadThread(void* fileInfo) 319 319 { 320 #ifdef HAVE_PTHREAD_H 320 321 pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); 321 322 gdk_threads_enter(); 323 #endif /* HAVE_PTHREAD_H */ 322 324 FileInfo* info = (FileInfo*)fileInfo; 323 325 info->stateButton->disconnectSignal(info->buttonSignal); … … 325 327 #ifdef HAVE_PTHREAD_H 326 328 info->stateButton->setTitle("cancel"); 329 gdk_threads_leave(); 327 330 #else /* HAVE_PTHREAD_H */ 328 331 info->stateButton->setTitle("please wait"); 329 332 #endif /* HAVE_PTHREAD_H */ 330 gdk_threads_leave();331 333 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); 332 334 … … 343 345 #ifdef HAVE_PTHREAD_H 344 346 pthread_join (*downloadThreadID, NULL); 345 #endif /* HAVE_PTHREAD_H */346 347 gdk_threads_enter(); 348 #endif /* HAVE_PTHREAD_H */ 347 349 if (curlHandle) 348 350 curl_easy_cleanup(curlHandle); … … 358 360 info->buttonSignal = info->stateButton->connectSignal("button_press_event", info, updateDataFunc); 359 361 isDownloading = false; 362 #ifdef HAVE_PTHREAD_H 360 363 gdk_threads_leave(); 364 #endif /* HAVE_PTHREAD_H */ 361 365 362 366 }
Note: See TracChangeset
for help on using the changeset viewer.