summaryrefslogtreecommitdiff
path: root/tests/create1.c
blob: 2741401382270021fd7f671749e8a2ab3e0bd6fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <pthread.h>
#include <stdio.h>
#include <windows.h>

void * func(void * arg)
{
  return 0; 
}
 
int
main()
{
  pthread_t t;
  if (pthread_create(&t, NULL, func, NULL) != 0)
    {
      return 1;
    }

  /* A dirty hack, but we cannot rely on pthread_join in this
     primitive test. */
  Sleep(5000);

  return 0;
}