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 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 tpi_none.h
26  * @ingroup TASKINTERFACE
27  * @brief the dummy implementation defines all functions as macros
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 #ifdef TPI_NONE
35 
36 #include "scip/def.h"
37 
38 #ifndef _TPI_NONE_H_
39 #define _TPI_NONE_H_
40 
41 /* lock */
42 #define SCIPtpiInitLock(lock) (SCIP_UNUSED(lock), SCIP_OKAY)
43 #define SCIPtpiDestroyLock(lock) SCIP_UNUSED(lock)
44 #define SCIPtpiAcquireLock(lock) (SCIP_UNUSED(lock), SCIP_OKAY)
45 #define SCIPtpiReleaseLock(lock) (SCIP_UNUSED(lock), SCIP_OKAY)
46 
47 /* condition */
48 #define SCIPtpiInitCondition(condition) (SCIP_UNUSED(condition), SCIP_OKAY)
49 #define SCIPtpiDestroyCondition(condition) SCIP_UNUSED(condition)
50 #define SCIPtpiSignalCondition(condition) (SCIP_UNUSED(condition), SCIP_OKAY)
51 #define SCIPtpiBroadcastCondition(condition) (SCIP_UNUSED(condition), SCIP_OKAY)
52 #define SCIPtpiWaitCondition(condition, lock) /*lint -e505*/ (SCIP_UNUSED(condition), SCIP_UNUSED(lock), SCIP_OKAY)
53 
54 
55 #define SCIPtpiGetNumThreads() 1
56 #define SCIPtpiGetThreadNum() 0
57 
58 #define SCIPtpiGetNewJobID() 0
59 
60 #endif
61 
62 #endif
common defines and data types used in all packages of SCIP