mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-02-06 04:04:17 +00:00
16 lines
270 B
C++
16 lines
270 B
C++
|
#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;
|
||
|
}
|