Scippy

SCIP

Solving Constraint Integer Programs

type_tpi.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright 2002-2022 Zuse Institute Berlin */
7 /* */
8 /* Licensed under the Apache License, Version 2.0 (the "License"); */
9 /* you may not use this file except in compliance with the License. */
10 /* You may obtain a copy of the License at */
11 /* */
12 /* http://www.apache.org/licenses/LICENSE-2.0 */
13 /* */
14 /* Unless required by applicable law or agreed to in writing, software */
15 /* distributed under the License is distributed on an "AS IS" BASIS, */
16 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17 /* See the License for the specific language governing permissions and */
18 /* limitations under the License. */
19 /* */
20 /* You should have received a copy of the Apache-2.0 license */
21 /* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
22 /* */
23 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24 
25 /**@file type_tpi.h
26  * @ingroup TASKINTERFACE
27  * @brief the type definitions for the task processing interface
28  * @author Leona Gottwald
29  * @author Stephen J. Maher
30  */
31 
32 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
33 
34 #ifndef __TYPE_TPI_H__
35 #define __TYPE_TPI_H__
36 
37 #include "scip/type_retcode.h"
38 #include "tpi/type_tpi_openmp.h"
39 #include "tpi/type_tpi_tnycthrd.h"
40 #include "tpi/type_tpi_none.h"
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 /** The status after submitting a job */
48 {
53 };
55 
56 /** The job status
57  *
58  * There is more than one job per job id. So the job status will return either SCIP_JOB_DOESNOTEXIST or the lowest level
59  * of execution. For example, if there is a job running and a job in the queue, then the return will be
60  * SCIP_JOB_INQUEUE.
61  */
63 {
68 };
70 
71 typedef struct SCIP_Job SCIP_JOB; /**< a job to be submitted to a separate thread */
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif
enum SCIP_Submitstatus SCIP_SUBMITSTATUS
Definition: type_tpi.h:54
enum SCIP_Jobstatus SCIP_JOBSTATUS
Definition: type_tpi.h:69
type definitions for return codes for SCIP methods
the type definitions for the the locks and condition variables for the OpenMP implementation of the T...
SCIP_Submitstatus
Definition: type_tpi.h:47
the type definitions for the the locks and condition variables for the tinycthreads implementation of...
the type definitions for the the locks and condition variables for the dummy implementation of the TP...
SCIP_Jobstatus
Definition: type_tpi.h:62