Disable HostThread::Cancel assertion on FreeBSD

It is still used by ProcessMonitor::StopMonitoringChildProcess and
ProcessMonitor::StopOpThread.

llvm-svn: 269434
This commit is contained in:
Ed Maste 2016-05-13 17:01:59 +00:00
parent f28beac419
commit 718e2968f8
1 changed files with 2 additions and 0 deletions

View File

@ -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