1 --- ../libqalculate-1.0.0/libqalculate/util.cc 2017-07-16 12:48:15.000000000 +0200
2 +++ ./libqalculate/util.cc 2017-08-08 23:15:29.000000000 +0200
6 void Thread::enableAsynchronousCancel() {
7 - pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
8 - pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
9 + //pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
10 + //pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
13 void *Thread::doRun(void *data) {
17 bool Thread::cancel() {
18 - int ret = pthread_cancel(m_thread);
19 + int ret = pthread_kill(m_thread, 0);