/*
 * OpenMAMA: The open middleware agnostic messaging API
 * Copyright (C) 2011 NYSE Technologies, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA
 */

#ifndef LockCppH__
#define LockCppH__

#include <memory>

namespace Wombat {

class COMMONExpDLL Lock
{
public:
    Lock       ();
    ~Lock      ();

    void lock   ();
    void unlock ();
private:
    Lock (const Lock& copy);    // no copy
    Lock& operator= (const Lock& rhs); // no assignment

    struct LockImpl;
    std::auto_ptr <LockImpl> mImpl;
};

}
#endif

/*
 * OpenMAMA: The open middleware agnostic messaging API
 * Copyright (C) 2011 NYSE Technologies, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA
 */

#ifndef LockCppH__
#define LockCppH__

#include <memory>
#include "wombat/wConfig.h"

namespace Wombat {

class COMMONExpDLL Lock
{
public:
    Lock       ();
    ~Lock      ();

    void lock   ();
    void unlock ();
private:
    Lock (const Lock& copy);    // no copy
    Lock& operator= (const Lock& rhs); // no assignment

    struct LockImpl;
    std::auto_ptr <LockImpl> mImpl;
};

}
#endif

Build error when openmama patch for VS solution files caused Enterprise build fail.
Build error when openmama patch for VS solution files caused Enterprise build fail.

Modification to Lock.h to correct build error when openmama patch for
Microsoft Visual Studio solution file updates caused Enterprise build to
fail.

Signed-off-by: A Ambrose <adf778e8f047b26f3e0544674b3bfe8e328348f7@nyx.com>
