Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
42 lines
866 B
C++
42 lines
866 B
C++
// Copyright (C) 2000 Stephen Cleary (shammah@voyager.net)
|
|
//
|
|
// This file can be redistributed and/or modified under the terms found
|
|
// in "copyright.html"
|
|
// This software and its documentation is provided "as is" without express or
|
|
// implied warranty, and with no claim as to its suitability for any purpose.
|
|
//
|
|
// See http://www.boost.org for updates, documentation, and revision history.
|
|
|
|
#ifndef BOOST_POOL_GUARD_HPP
|
|
#define BOOST_POOL_GUARD_HPP
|
|
|
|
// Extremely Light-Weight guard glass
|
|
|
|
namespace boost {
|
|
|
|
namespace details {
|
|
namespace pool {
|
|
|
|
template <typename Mutex>
|
|
class guard
|
|
{
|
|
private:
|
|
Mutex & mtx;
|
|
|
|
guard(const guard &);
|
|
void operator=(const guard &);
|
|
|
|
public:
|
|
explicit guard(Mutex & nmtx)
|
|
:mtx(nmtx) { mtx.lock(); }
|
|
|
|
~guard() { mtx.unlock(); }
|
|
};
|
|
|
|
} // namespace pool
|
|
} // namespace details
|
|
|
|
} // namespace boost
|
|
|
|
#endif
|