Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3282 in orxonox.OLD for orxonox/branches/updater


Ignore:
Timestamp:
Dec 25, 2004, 5:47:59 PM (20 years ago)
Author:
dave
Message:

orxonox/branches/updater: more convenient in non-threaded mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/src/gui/orxonox_gui_update.cc

    r3281 r3282  
    313313   \brief The downloading process (either threaded or not).
    314314   \param fileInfo the FileInfo.
     315
     316   \todo Threads get locked, if the cancel button is pressed in to small intervals.
    315317*/
    316318void* OrxonoxGuiUpdate::downloadThread(void* fileInfo)
     
    321323  info->stateButton->disconnectSignal(info->buttonSignal);
    322324  info->buttonSignal = info->stateButton->connectSignal("button_press_event", info, cancelDownload);
     325#ifdef HAVE_PTHREAD_H
    323326  info->stateButton->setTitle("cancel");
     327#else /* HAVE_PTHREAD_H */
     328  info->stateButton->setTitle("please wait");
     329#endif /* HAVE_PTHREAD_H */
    324330  gdk_threads_leave();
    325331  pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
    326332
    327333  curl_easy_perform(curlHandle);
    328  
    329334}
    330335
Note: See TracChangeset for help on using the changeset viewer.