Skip to content

Commit

Permalink
Merge pull request #130 from g-maxime/threads
Browse files Browse the repository at this point in the history
pthread_cancel is missing in Android NDK
  • Loading branch information
JeromeMartinez authored Mar 25, 2021
2 parents d0c6f5b + d67ad42 commit e7f5dfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/ZenLib/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,9 @@ Thread::returnvalue Thread::RequestTerminate()
Thread::returnvalue Thread::ForceTerminate()
{
//Terminating (not clean)
#if !defined(__ANDROID_API__)
pthread_cancel((pthread_t)ThreadPointer);
#endif

//Configuring
State=State_Terminated;
Expand Down

0 comments on commit e7f5dfe

Please sign in to comment.