mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-26 08:15:44 +00:00
Add pthreads test
This commit is contained in:
parent
e69106f257
commit
dd6af58c98
14
TestPrograms/test_pthreads.cxx
Normal file
14
TestPrograms/test_pthreads.cxx
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user