TestDestroy() bug corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -342,9 +342,12 @@ bool wxThread::TestDestroy()
|
|||||||
usleep(1);
|
usleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// VZ: do I understand it correctly that it will terminate the thread all by
|
||||||
|
// itself if it was cancelled?
|
||||||
pthread_testcancel();
|
pthread_testcancel();
|
||||||
|
|
||||||
return TRUE; /* what is this for? */
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxThread::IsMain()
|
bool wxThread::IsMain()
|
||||||
|
@@ -342,9 +342,12 @@ bool wxThread::TestDestroy()
|
|||||||
usleep(1);
|
usleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// VZ: do I understand it correctly that it will terminate the thread all by
|
||||||
|
// itself if it was cancelled?
|
||||||
pthread_testcancel();
|
pthread_testcancel();
|
||||||
|
|
||||||
return TRUE; /* what is this for? */
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxThread::IsMain()
|
bool wxThread::IsMain()
|
||||||
|
Reference in New Issue
Block a user