* Added thread cleanup safeness: thread can be explicitely killed safely now

on Unix.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1999-05-15 12:01:15 +00:00
parent 92abe7f670
commit 5092b3add7
3 changed files with 428 additions and 357 deletions

View File

@@ -1437,6 +1437,18 @@ if test "$wxUSE_THREADS" = "1"; then
AC_DEFINE(HAVE_PTHREAD_CANCEL),
AC_MSG_WARN(wxThread::Kill() will not work properly))
AC_MSG_CHECKING([for pthread_cleanup_push/pop])
AC_TRY_COMPILE([#include <pthread.h>],
[
pthread_cleanup_push(NULL, NULL);
pthread_cleanup_pop(0);
],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_THREAD_CLEANUP_FUNCTIONS)
],
[AC_MSG_RESULT(no)]
)
THREADS_LINK="-l$THREADS_LINK"
fi