You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
270 B
16 lines
270 B
4 years ago
|
#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;
|
||
|
}
|