[Lldb-commits] [lldb] r326777 - HostThreadPosix::Cancel: remove android-specific implementation
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 6 04:46:05 PST 2018
Author: labath
Date: Tue Mar 6 04:46:05 2018
New Revision: 326777
URL: http://llvm.org/viewvc/llvm-project?rev=326777&view=rev
Log:
HostThreadPosix::Cancel: remove android-specific implementation
Noone is calling this function on android, so we can just use the
generic llvm_unreachable "implementation".
Modified:
lldb/trunk/source/Host/posix/HostThreadPosix.cpp
Modified: lldb/trunk/source/Host/posix/HostThreadPosix.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/HostThreadPosix.cpp?rev=326777&r1=326776&r2=326777&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/HostThreadPosix.cpp (original)
+++ lldb/trunk/source/Host/posix/HostThreadPosix.cpp Tue Mar 6 04:46:05 2018
@@ -41,14 +41,11 @@ Status HostThreadPosix::Join(lldb::threa
Status HostThreadPosix::Cancel() {
Status error;
if (IsJoinable()) {
-#ifndef __ANDROID__
#ifndef __FreeBSD__
llvm_unreachable("someone is calling HostThread::Cancel()");
-#endif
+#else
int err = ::pthread_cancel(m_thread);
error.SetError(err, eErrorTypePOSIX);
-#else
- error.SetErrorString("HostThreadPosix::Cancel() not supported on Android");
#endif
}
return error;
More information about the lldb-commits
mailing list