Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
wxThread::ExistCode MyThread::Entry()
{
while( !TestDestroy() )
{
std::lock_guard<std::mutex> loocker();
int res = call_some_func();
if( res )
Delete();
}
return (wxThread::ExitCode) 0;
}
When I run this code on Windows (8.1/MSVC 2017) everything works as expected - thread ends successfully.
When I run it on Linux (GTK 3.24, C++11) - it does not. Thread does not ends.
doublemax,
I followed the code from wxThread docs and it looks like everything works. I'll try linux/mac today, but suspect everything will work there as well.