MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / createThreadSupport

Function createThreadSupport

examples/MultiThreading/main.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#include "b3PosixThreadSupport.h"
31
32b3ThreadSupportInterface* createThreadSupport(int numThreads)
33{
34 b3PosixThreadSupport::ThreadConstructionInfo constructionInfo("testThreads",
35 SampleThreadFunc,
36 SamplelsMemoryFunc,
37SamplelsMemoryReleaseFunc,
38 numThreads);
39 b3ThreadSupportInterface* threadSupport = new b3PosixThreadSupport(constructionInfo);
40
41 return threadSupport;
42}
43
44#elif defined(_WIN32)
45#include "b3Win32ThreadSupport.h"

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected