kubamracek created this revision.
kubamracek added reviewers: davide, jasonmolenda, jingham, aprantl.
https://reviews.llvm.org/D44056
Files:
source/Host/posix/HostThreadPosix.cpp
Index: source/Host/posix/HostThreadPosix.cpp
===================================================================
--- source/Host/posix/HostThreadPosix.cpp
+++ source/Host/posix/HostThreadPosix.cpp
@@ -44,9 +44,10 @@
#ifndef __ANDROID__
#ifndef __FreeBSD__
llvm_unreachable("someone is calling HostThread::Cancel()");
-#endif
+#else
int err = ::pthread_cancel(m_thread);
error.SetError(err, eErrorTypePOSIX);
+#endif
#else
error.SetErrorString("HostThreadPosix::Cancel() not supported on Android");
#endif
Index: source/Host/posix/HostThreadPosix.cpp
===================================================================
--- source/Host/posix/HostThreadPosix.cpp
+++ source/Host/posix/HostThreadPosix.cpp
@@ -44,9 +44,10 @@
#ifndef __ANDROID__
#ifndef __FreeBSD__
llvm_unreachable("someone is calling HostThread::Cancel()");
-#endif
+#else
int err = ::pthread_cancel(m_thread);
error.SetError(err, eErrorTypePOSIX);
+#endif
#else
error.SetErrorString("HostThreadPosix::Cancel() not supported on Android");
#endif
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits