ext-cryptopp/TestPrograms/test_pthreads.cpp

16 lines
270 B
C++
Raw Permalink Normal View History

2018-11-13 18:48:38 +00:00
#include <string>
#include <pthread.h>
void* function(void *ptr)
{
2020-08-06 01:43:23 +00:00
return 0;
2018-11-13 18:48:38 +00:00
}
int main(int argc, char* argv[])
{
2020-08-06 01:43:23 +00:00
pthread_t thread;
int ret = pthread_create(&thread, NULL, function, (void*)0);
pthread_join(thread, NULL);
return 0;
2018-11-13 18:48:38 +00:00
}