X7ROOT File Manager
Current Path:
/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/src/cxx_supportlib/Utils
opt
/
cpanel
/
ea-ruby27
/
src
/
passenger-release-6.0.23
/
src
/
cxx_supportlib
/
Utils
/
📁
..
📄
AnsiColorConstants.h
(1.75 KB)
📄
AsyncSignalSafeUtils.h
(5.42 KB)
📄
BlockingQueue.h
(3.87 KB)
📄
CachedFileStat.cpp
(2.08 KB)
📄
CachedFileStat.h
(1.92 KB)
📄
CachedFileStat.hpp
(7.52 KB)
📄
ClassUtils.h
(2.35 KB)
📄
Curl.h
(7.78 KB)
📄
FastStringStream.h
(5.25 KB)
📄
FileChangeChecker.h
(6.3 KB)
📄
HttpConstants.h
(4.48 KB)
📄
IniFile.h
(11.86 KB)
📄
Lock.h
(630 B)
📄
MessagePassing.h
(8.08 KB)
📄
OptionParsing.h
(2.26 KB)
📄
ReleaseableScopedPointer.h
(2.09 KB)
📄
ScopeGuard.h
(3.62 KB)
📄
SpeedMeter.h
(8.52 KB)
📄
Timer.h
(4.05 KB)
📄
VariantMap.h
(13.81 KB)
Editing: Lock.h
#ifndef _PASSENGER_LOCK_H_ #define _PASSENGER_LOCK_H_ #include <boost/thread.hpp> namespace Passenger { using namespace boost; /** Shortcut typedefs. */ typedef boost::lock_guard<boost::mutex> LockGuard; typedef boost::unique_lock<boost::mutex> ScopedLock; /** Nicer syntax for conditionally locking the mutex during construction. */ class DynamicScopedLock: public boost::unique_lock<boost::mutex> { public: DynamicScopedLock(boost::mutex &m, bool lockNow = true) : boost::unique_lock<boost::mutex>(m, boost::defer_lock) { if (lockNow) { lock(); } } }; } // namespace Passenger #endif /* _PASSENGER_LOCK_H_ */
Upload File
Create Folder