• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revisión4d9c05ed0b2b5eb3d43e39882443fe568a1e3450 (tree)
Tiempo2022-08-30 07:59:36
AutorSergey Gusarov <laborer2008@gmai...>
CommiterSergey Gusarov

Log Message

Fixed android NDK compile error

Cambiar Resumen

Diferencia incremental

diff -r 51c0cb3b217d -r 4d9c05ed0b2b include/ctools/os/thread.h
--- a/include/ctools/os/thread.h Tue Aug 30 00:15:50 2022 +0300
+++ b/include/ctools/os/thread.h Tue Aug 30 01:59:36 2022 +0300
@@ -65,7 +65,15 @@
6565
6666
6767 # define CT_THREAD_AVAILABLE
68-# define CT_KILL_THREAD_AVAILABLE
68+
69+/*
70+ * https://android.googlesource.com/platform/bionic/+/master/docs/status.md
71+ * Thread cancellation (pthread_cancel). Unlikely to ever be implemented because of the difficulty
72+ * and cost of implementing it, and the difficulty of using it correctly
73+ */
74+# if !defined(CT_OS_ANDROID)
75+# define CT_KILL_THREAD_AVAILABLE
76+# endif
6977
7078 CT_BEGIN_NAMESPACE
7179
Show on old repository browser