https://github.com/Kitware/CMake
Revision dad271e8b7eec9ce781bccb9e7e7c9ed4f55003c authored by Brad King on 17 June 2019, 12:03:29 UTC, committed by Brad King on 17 June 2019, 12:03:29 UTC
2 parent s 3d82163 + 276b56f
Raw File
Tip revision: dad271e8b7eec9ce781bccb9e7e7c9ed4f55003c authored by Brad King on 17 June 2019, 12:03:29 UTC
Merge branch 'FindBLAS-OpenBLAS-thread' into release-3.15
Tip revision: dad271e
CheckForPthreads.c
#include <pthread.h>

void* start_routine(void* args)
{
  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;
}
back to top