CMake/Modules/CheckForPthreads.c

16 lines
273 B
C
Raw Normal View History

2003-08-01 20:48:41 +00:00
#include <pthread.h>
void* start_routine(void* args)
{
return args;
2003-08-01 20:48:41 +00:00
}
int main(void)
2003-08-01 20:48:41 +00: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);
2003-08-01 20:48:41 +00:00
return 0;
}