×
☰
Toggle navigation
SCIP Optimization Suite
SCIP
SoPlex
ZIMPL
UG
GCG
Documentation
SCIP 9.2.0
SCIP 8.1.0
SCIP 7.0.3
SCIP 6.0.2
SCIP 5.0.1
SCIP 4.0.1
SCIP 3.2.1
SCIP
Solving Constraint Integer Programs
type_tpi_openmp.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_openmp.h
26
* @ingroup TASKINTERFACE
27
* @brief the type definitions for the the locks and condition variables for the OpenMP implementation of the TPI
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_OMP
35
36
#ifndef __TYPE_TPI_OPENMP_H__
37
#define __TYPE_TPI_OPENMP_H__
38
39
#include <omp.h>
40
41
typedef
omp_lock_t SCIP_LOCK;
42
typedef
struct
{
43
SCIP_LOCK _lock;
44
int
_waiters;
45
int
_waitnum;
46
int
_signals;
47
} SCIP_CONDITION;
48
49
#endif
50
51
#endif