tpi_openmp.c
Go to the documentation of this file.
23 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
50 SCIP_JOB** currentjobs; /**< array with slot for each thread to store the currently running job */
214 /* @todo we want to work out what to do with a full job queue. Is there a problem if the limit is hit? */
215 /* @note it is important to have a queuesize. This will stop the code submitting infinitely many jobs. */
220 /* This function queries the current job list. This could change by other threads writing to the list. So a lock is
470 /* if the job has the right jobid collect its retcode, remove it from the finished job list, and free it */
Definition: tpi_openmp.c:47
SCIP_RETCODE SCIPtpiCreateJob(SCIP_JOB **job, int jobid, SCIP_RETCODE(*jobfunc)(void *args), void *jobarg)
Definition: tpi_openmp.c:347
Definition: tpi_openmp.c:29
SCIP_RETCODE SCIPtpiInit(int nthreads, int queuesize, SCIP_Bool blockwhenfull)
Definition: tpi_openmp.c:513
static SCIP_RETCODE createJobQueue(int nthreads, int qsize, SCIP_Bool blockwhenfull)
Definition: tpi_openmp.c:64
SCIP_RETCODE SCIPtpiSignalCondition(SCIP_CONDITION *condition)
Definition: tpi_openmp.c:262
SCIP_EXPORT SCIP_RETCODE SCIPtpiInitCondition(SCIP_LOCK *lock)
the type definitions for the SCIP parallel interface
SCIP_EXPORT void SCIPtpiDestroyCondition(SCIP_LOCK *lock)
SCIP_EXPORT SCIP_RETCODE SCIPtpiInitLock(SCIP_LOCK *lock)
SCIP_RETCODE SCIPtpiSumbitJob(SCIP_JOB *job, SCIP_SUBMITSTATUS *status)
Definition: tpi_openmp.c:379
Definition: type_retcode.h:33
Definition: type_retcode.h:34
Definition: type_tpi.h:43
Definition: tpi_openmp.c:39
SCIP_EXPORT void SCIPtpiDestroyLock(SCIP_LOCK *lock)
SCIP_EXPORT SCIP_RETCODE SCIPtpiAcquireLock(SCIP_LOCK *lock)
SCIP_RETCODE SCIPtpiBroadcastCondition(SCIP_CONDITION *condition)
Definition: tpi_openmp.c:280
SCIP_RETCODE SCIPtpiWaitCondition(SCIP_CONDITION *condition, SCIP_LOCK *lock)
Definition: tpi_openmp.c:295
SCIP_EXPORT SCIP_RETCODE SCIPtpiReleaseLock(SCIP_LOCK *lock)
memory allocation routines