gbe_fork/cmake/share/cmake-3.30/Modules/CheckForPthreads.c

16 lines
295 B
C
Raw Normal View History

2023-12-16 20:34:09 +02:00
#include <pthread.h>
2024-08-19 00:34:28 +02:00
static void* start_routine(void* args)
2023-12-16 20:34:09 +02:00
{
return args;
}
int main(void)
{
/* This is a compile and link test, no code to actually run things. */
pthread_t thread;
pthread_create(&thread, 0, start_routine, 0);
pthread_join(thread, 0);
return 0;
}