/* -*- mode: C++; indent-tabs-mode: nil; -*-
* This file is a part of LEMON, a generic C++ optimization library.
* Copyright (C) 2003-2012
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
* (Egervary Research Group on Combinatorial Optimization, EGRES).
* Permission to use, modify and distribute this software is granted
* provided that this copyright notice appears in all copies. For
* precise terms see the accompanying LICENSE file.
* This software is provided "AS IS" with no warranty of any kind,
* express or implied, and with no claim as to its suitability for any
#ifndef LEMON_BITS_LOCK_H
#define LEMON_BITS_LOCK_H
#include <lemon/config.h>
#if defined(LEMON_USE_PTHREAD)
#elif defined(LEMON_USE_WIN32_THREADS)
#include <lemon/bits/windows.h>
#if defined(LEMON_USE_PTHREAD)
pthread_mutex_init(&_lock, 0);
pthread_mutex_destroy(&_lock);
pthread_mutex_lock(&_lock);
pthread_mutex_unlock(&_lock);
#elif defined(LEMON_USE_WIN32_THREADS)
class Lock : public WinLock {};