fixes in PosixThreadSupport to enable ThreadingDemo and MultiThreadingDemo to run properly.

fix autotools build (added missing files)
This commit is contained in:
erwin.coumans
2011-03-30 19:01:29 +00:00
parent 2a856f8c32
commit 88b19eb023
4 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,4 @@
IF(BUILD_MINICL_OPENCL_DEMOS)
SUBDIRS( MiniCL )
ENDIF()
IF(BUILD_AMD_OPENCL_DEMOS)
SUBDIRS(AMD)

View File

@@ -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()