summaryrefslogtreecommitdiff
path: root/TestPrograms/test_pthreads.cxx
blob: f14b8a0e48527e7a47790d7b235f3354d69b6649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <string>
#include <pthread.h>

void* function(void *ptr)
{
	return 0;
}

int main(int argc, char* argv[])
{
	pthread_t thread;
	int ret = pthread_create(&thread, NULL, function, (void*)0);
	pthread_join(thread, NULL);
	return 0;
}