simple multi threading test

This commit is contained in:
Erwin Coumans
2015-08-21 15:18:18 -07:00
parent 362887987c
commit 74fda9ff85
10 changed files with 374 additions and 11 deletions

View File

@@ -140,7 +140,7 @@ int main(int argc,char** argv)
int i;
for (i=0;i<numThreads;i++)
{
threadSupport->sendRequest(B3_THREAD_SCHEDULE_TASK, (void*) &args, i);
threadSupport->runTask(B3_THREAD_SCHEDULE_TASK, (void*) &args, i);
}
bool blockingWait =false;
@@ -168,10 +168,10 @@ int main(int argc,char** argv)
};
}
printf("stopping threads\n");
printf("stopping threads\n");
delete threadSupport;
printf("Press ENTER to quit\n");
getchar();
//getchar();
return 0;
}