summaryrefslogtreecommitdiff
path: root/innobase/os
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-11-07 00:19:36 +0200
committermonty@hundin.mysql.fi <>2001-11-07 00:19:36 +0200
commitf9a321af8a077ea7dc17a7964166738daab6db7e (patch)
treef1c7979e7d8282f034f3cabdfe558293a7f7c2f4 /innobase/os
parent9285b745d672c18fe7ed0e6639fba95db862613e (diff)
parentaf2e13481ecc4dbae74fa5a4dc4f9d70ec498e39 (diff)
downloadmariadb-git-f9a321af8a077ea7dc17a7964166738daab6db7e.tar.gz
merge
Diffstat (limited to 'innobase/os')
-rw-r--r--innobase/os/os0sync.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/innobase/os/os0sync.c b/innobase/os/os0sync.c
index 8da142cd4a6..2cf5160d055 100644
--- a/innobase/os/os0sync.c
+++ b/innobase/os/os0sync.c
@@ -455,6 +455,21 @@ os_fast_mutex_lock(
}
/**************************************************************
+Releases ownership of a fast mutex. */
+
+void
+os_fast_mutex_unlock(
+/*=================*/
+ os_fast_mutex_t* fast_mutex) /* in: mutex to release */
+{
+#ifdef __WIN__
+ LeaveCriticalSection(fast_mutex);
+#else
+ pthread_mutex_unlock(fast_mutex);
+#endif
+}
+
+/**************************************************************
Frees a mutex object. */
void