Files
iperf3-gui/android/app/src/main/cpp/iperf/iperf_pthread.h
T

22 lines
449 B
C
Raw Normal View History

2026-08-25 13:46:33 +09:00
#include "iperf_config.h"
#if defined(HAVE_PTHREAD)
#include <pthread.h>
#if defined(__ANDROID__)
/* Adding missing `pthread` related definitions in Android.
*/
#define PTHREAD_CANCEL_ASYNCHRONOUS 0
#define PTHREAD_CANCEL_ENABLE 0
int pthread_setcanceltype(int type, int *oldtype);
int pthread_setcancelstate(int state, int *oldstate);
int pthread_cancel(pthread_t thread_id);
#endif // defined(__ANDROID__)
#endif // defined(HAVE_PTHREAD)