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