CheckForPthreads.c 273 B

123456789101112131415
  1. #include <pthread.h>
  2. void* start_routine(void* args)
  3. {
  4. return args;
  5. }
  6. int main(void)
  7. {
  8. /* This is a compile and link test, no code to actually run things. */
  9. pthread_t thread;
  10. pthread_create(&thread, 0, start_routine, 0);
  11. pthread_join(thread, 0);
  12. return 0;
  13. }