Scippy

SCIP

Solving Constraint Integer Programs

tpi_none.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 (C) 2002-2020 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not visit scipopt.org. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file tpi_none.h
17  * @ingroup TASKINTERFACE
18  * @brief the dummy implementation defines all functions as macros
19  * @author Leona Gottwald
20  * @author Stephen J. Maher
21  */
22 
23 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
24 
25 #ifdef TPI_NONE
26 
27 #include "scip/def.h"
28 
29 #ifndef _TPI_NONE_H_
30 #define _TPI_NONE_H_
31 
32 /* lock */
33 #define SCIPtpiInitLock(lock) (SCIP_UNUSED(lock), SCIP_OKAY)
34 #define SCIPtpiDestroyLock(lock) SCIP_UNUSED(lock)
35 #define SCIPtpiAcquireLock(lock) (SCIP_UNUSED(lock), SCIP_OKAY)
36 #define SCIPtpiReleaseLock(lock) (SCIP_UNUSED(lock), SCIP_OKAY)
37 
38 /* condition */
39 #define SCIPtpiInitCondition(condition) (SCIP_UNUSED(condition), SCIP_OKAY)
40 #define SCIPtpiDestroyCondition(condition) SCIP_UNUSED(condition)
41 #define SCIPtpiSignalCondition(condition) (SCIP_UNUSED(condition), SCIP_OKAY)
42 #define SCIPtpiBroadcastCondition(condition) (SCIP_UNUSED(condition), SCIP_OKAY)
43 #define SCIPtpiWaitCondition(condition, lock) /*lint -e505*/ (SCIP_UNUSED(condition), SCIP_UNUSED(lock), SCIP_OKAY)
44 
45 
46 #define SCIPtpiGetNumThreads() 1
47 #define SCIPtpiGetThreadNum() 0
48 
49 #define SCIPtpiGetNewJobID() 0
50 
51 #endif
52 
53 #endif
common defines and data types used in all packages of SCIP