tpi_openmp.c
Go to the documentation of this file.
32 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
59 SCIP_JOB** currentjobs; /**< array with slot for each thread to store the currently running job */
223 /* @todo we want to work out what to do with a full job queue. Is there a problem if the limit is hit? */
224 /* @note it is important to have a queuesize. This will stop the code submitting infinitely many jobs. */
229 /* This function queries the current job list. This could change by other threads writing to the list. So a lock is
479 /* if the job has the right jobid collect its retcode, remove it from the finished job list, and free it */
Definition: tpi_openmp.c:56
SCIP_RETCODE SCIPtpiCreateJob(SCIP_JOB **job, int jobid, SCIP_RETCODE(*jobfunc)(void *args), void *jobarg)
Definition: tpi_openmp.c:356
Definition: tpi_openmp.c:38
SCIP_RETCODE SCIPtpiAcquireLock(SCIP_LOCK *lock)
SCIP_RETCODE SCIPtpiInitCondition(SCIP_LOCK *lock)
SCIP_RETCODE SCIPtpiInit(int nthreads, int queuesize, SCIP_Bool blockwhenfull)
Definition: tpi_openmp.c:522
static SCIP_RETCODE createJobQueue(int nthreads, int qsize, SCIP_Bool blockwhenfull)
Definition: tpi_openmp.c:73
SCIP_RETCODE SCIPtpiSignalCondition(SCIP_CONDITION *condition)
Definition: tpi_openmp.c:271
SCIP_RETCODE SCIPtpiReleaseLock(SCIP_LOCK *lock)
the type definitions for the SCIP parallel interface
SCIP_RETCODE SCIPtpiSumbitJob(SCIP_JOB *job, SCIP_SUBMITSTATUS *status)
Definition: tpi_openmp.c:388
Definition: type_retcode.h:42
Definition: type_retcode.h:43
SCIP_RETCODE SCIPtpiInitLock(SCIP_LOCK *lock)
Definition: type_tpi.h:52
Definition: tpi_openmp.c:48
void SCIPtpiDestroyLock(SCIP_LOCK *lock)
void SCIPtpiDestroyCondition(SCIP_LOCK *lock)
SCIP_RETCODE SCIPtpiBroadcastCondition(SCIP_CONDITION *condition)
Definition: tpi_openmp.c:289
SCIP_RETCODE SCIPtpiWaitCondition(SCIP_CONDITION *condition, SCIP_LOCK *lock)
Definition: tpi_openmp.c:304
memory allocation routines