Add pthreads test

This commit is contained in:
Jeffrey Walton 2018-11-13 12:13:16 -05:00
parent e69106f257
commit dd6af58c98
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -0,0 +1,14 @@
#include <string>
#include <pthreads.h>
void* function(void *ptr)
{
}
int main(int argc, char* argv[])
{
pthread_t thread;
int ret = pthread_create(&thread, NULL, function, (void*)0);
pthread_join(thread, NULL);
return 0;
}