forked from OSchip/llvm-project
Disable HostThread::Cancel assertion on FreeBSD
It is still used by ProcessMonitor::StopMonitoringChildProcess and ProcessMonitor::StopOpThread. llvm-svn: 269434
This commit is contained in:
parent
f28beac419
commit
718e2968f8
|
@ -56,7 +56,9 @@ HostThreadPosix::Cancel()
|
|||
if (IsJoinable())
|
||||
{
|
||||
#ifndef __ANDROID__
|
||||
#ifndef __FreeBSD__
|
||||
assert(false && "someone is calling HostThread::Cancel()");
|
||||
#endif
|
||||
int err = ::pthread_cancel(m_thread);
|
||||
error.SetError(err, eErrorTypePOSIX);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue