fixes in PosixThreadSupport to enable ThreadingDemo and MultiThreadingDemo to run properly.
fix autotools build (added missing files)
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
|
||||
IF(BUILD_MINICL_OPENCL_DEMOS)
|
||||
SUBDIRS( MiniCL )
|
||||
ENDIF()
|
||||
|
||||
IF(BUILD_AMD_OPENCL_DEMOS)
|
||||
SUBDIRS(AMD)
|
||||
|
||||
@@ -247,7 +247,7 @@ void PosixThreadSupport::stopSPU()
|
||||
printf("destroy semaphore\n");
|
||||
destroySem(spuStatus.startSemaphore);
|
||||
printf("semaphore destroyed\n");
|
||||
checkPThreadFunction(pthread_cancel(spuStatus.thread));
|
||||
checkPThreadFunction(pthread_join(spuStatus.thread,0));
|
||||
}
|
||||
printf("destroy main semaphore\n");
|
||||
destroySem(mainSemaphore);
|
||||
@@ -385,7 +385,9 @@ public:
|
||||
|
||||
btBarrier* PosixThreadSupport::createBarrier()
|
||||
{
|
||||
return new PosixBarrier();
|
||||
PosixBarrier* barrier = new PosixBarrier();
|
||||
barrier->setMaxCount(getNumTasks());
|
||||
return barrier;
|
||||
}
|
||||
|
||||
btCriticalSection* PosixThreadSupport::createCriticalSection()
|
||||
|
||||
Reference in New Issue
Block a user