summaryrefslogtreecommitdiffstats
path: root/js/src/threading/posix/MutexPlatformData.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/threading/posix/MutexPlatformData.h')
-rw-r--r--js/src/threading/posix/MutexPlatformData.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/threading/posix/MutexPlatformData.h b/js/src/threading/posix/MutexPlatformData.h
new file mode 100644
index 000000000..487d89681
--- /dev/null
+++ b/js/src/threading/posix/MutexPlatformData.h
@@ -0,0 +1,19 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+ * vim: set ts=8 sts=4 et sw=4 tw=99:
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef platform_win_MutexPlatformData_h
+#define platform_win_MutexPlatformData_h
+
+#include <pthread.h>
+
+#include "threading/Mutex.h"
+
+struct js::detail::MutexImpl::PlatformData
+{
+ pthread_mutex_t ptMutex;
+};
+
+#endif // platform_win_MutexPlatformData_h