mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 10:13:35 +00:00
34 lines
532 B
C++
34 lines
532 B
C++
// Aseprite Base Library
|
|
// Copyright (c) 2001-2013 David Capello
|
|
//
|
|
// This file is released under the terms of the MIT license.
|
|
// Read LICENSE.txt for more information.
|
|
|
|
#ifndef BASE_MUTEX_H_INCLUDED
|
|
#define BASE_MUTEX_H_INCLUDED
|
|
#pragma once
|
|
|
|
#include "base/disable_copying.h"
|
|
|
|
namespace base {
|
|
|
|
class mutex {
|
|
public:
|
|
mutex();
|
|
~mutex();
|
|
|
|
void lock();
|
|
bool try_lock();
|
|
void unlock();
|
|
|
|
private:
|
|
class mutex_impl;
|
|
mutex_impl* m_impl;
|
|
|
|
DISABLE_COPYING(mutex);
|
|
};
|
|
|
|
} // namespace base
|
|
|
|
#endif
|