Follow-up Comment #7, bug #13094 (project wesnoth):

We discussed it on IRC yesterday and Sirp concluded that switching to
Boost.asio is the way to go. Since it's going to be some work (and IMHO
shouldn't be done in this unstable development cycle), let's discuss the
other options.

There's no way to portably signal a waiting thread with SDL. Killing it is a
good option if we can catch the obscure exception, but there's still one
gotcha - that thread may be executing the delete_directory call, in which
case we can end up with potentially corrupted state. This needs to be
investigated, but a fix for the directory problem can be a simple,
special-case mutex.

>From the UI perspective we may consider adding a dialog asking the user if
he/she really wants to quit because statistics are still being uploaded, then
kill the thread only when "OK" is pressed. This way there will be no
observable "hung" state.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?13094>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to