android: pthread: replace pthread_cancel.

- android doesn't support pthread_cancel. so use pthread_kill instead
  pthread_cacnel.
This commit is contained in:
Luke Go
2019-07-29 13:46:24 +09:00
committed by Joshua Yang
parent 5344991b75
commit ecb33ea61c

View File

@@ -108,6 +108,14 @@ const int piMemorySize [8] =
static volatile int pinPass = -1 ;
static pthread_mutex_t pinMutex ;
/*----------------------------------------------------------------------------*/
#ifdef __ANDROID__
int pthread_cancel(pthread_t h) {
return pthread_kill(h, 0);
}
#endif /* __ANDROID__ */
/*----------------------------------------------------------------------------*/
// Debugging & Return codes
int wiringPiDebug = FALSE ;
int wiringPiReturnCodes = FALSE ;