cmake/Modules/CheckForPthreads.c

16 lines
273 B
C
Raw Normal View History

#include <pthread.h>
2018-01-26 17:06:56 +01:00
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;
}