cmake/Modules/CheckForPthreads.c

16 lines
280 B
C
Raw Normal View History

#include <pthread.h>
2024-07-09 14:46:46 +02:00
static void* start_routine(void* args)
2016-07-09 11:21:54 +02:00
{
2018-01-26 17:06:56 +01:00
return args;
}
2018-01-26 17:06:56 +01:00
int main(void)
{
2018-01-26 17:06:56 +01:00
/* 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;
}