Add dist target to CMAKE conf. (#434)
1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
3 * This file is a part of LEMON, a generic C++ optimization library.
5 * Copyright (C) 2003-2012
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
19 #ifndef LEMON_BITS_LOCK_H
20 #define LEMON_BITS_LOCK_H
22 #include <lemon/config.h>
23 #if defined(LEMON_USE_PTHREAD)
25 #elif defined(LEMON_USE_WIN32_THREADS)
26 #include <lemon/bits/windows.h>
32 #if defined(LEMON_USE_PTHREAD)
36 pthread_mutex_init(&_lock, 0);
39 pthread_mutex_destroy(&_lock);
42 pthread_mutex_lock(&_lock);
45 pthread_mutex_unlock(&_lock);
49 pthread_mutex_t _lock;
51 #elif defined(LEMON_USE_WIN32_THREADS)
52 class Lock : public WinLock {};