diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/webdatabase/OriginLock.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/Modules/webdatabase/OriginLock.h')
-rw-r--r-- | Source/WebCore/Modules/webdatabase/OriginLock.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Source/WebCore/Modules/webdatabase/OriginLock.h b/Source/WebCore/Modules/webdatabase/OriginLock.h index 791a56a4a..d7151de78 100644 --- a/Source/WebCore/Modules/webdatabase/OriginLock.h +++ b/Source/WebCore/Modules/webdatabase/OriginLock.h @@ -23,14 +23,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OriginLock_h -#define OriginLock_h - -#if ENABLE(SQL_DATABASE) +#pragma once #include "FileSystem.h" +#include <wtf/Lock.h> #include <wtf/ThreadSafeRefCounted.h> -#include <wtf/ThreadingPrimitives.h> #include <wtf/text/WTFString.h> namespace WebCore { @@ -39,7 +36,7 @@ class OriginLock : public ThreadSafeRefCounted<OriginLock> { WTF_MAKE_NONCOPYABLE(OriginLock); WTF_MAKE_FAST_ALLOCATED; public: OriginLock(String originPath); - ~OriginLock(); + WEBCORE_EXPORT ~OriginLock(); void lock(); void unlock(); @@ -50,14 +47,10 @@ private: static String lockFileNameForPath(String originPath); String m_lockFileName; - Mutex m_mutex; + Lock m_mutex; #if USE(FILE_LOCK) PlatformFileHandle m_lockHandle; #endif }; } // namespace WebCore - -#endif // ENABLE(SQL_DATABASE) - -#endif // OriginLock_h |