summaryrefslogtreecommitdiff
path: root/innobase/include
diff options
context:
space:
mode:
authorunknown <heikki@donna.mysql.fi>2001-09-20 21:38:46 +0300
committerunknown <heikki@donna.mysql.fi>2001-09-20 21:38:46 +0300
commit9402451031ab16562d5e477ddd5dd8ef60047320 (patch)
tree3a623e38cace80879380118300b360733637f226 /innobase/include
parentb596c41a87f755a91bb13072255edf4eb8b47695 (diff)
downloadmariadb-git-9402451031ab16562d5e477ddd5dd8ef60047320.tar.gz
os0sync.h Define os_fast_mutex functions also in Windows
os0sync.ic Define os_fast_mutex functions also in Windows innobase/include/os0sync.h: Define os_fast_mutex functions also in Windows innobase/include/os0sync.ic: Define os_fast_mutex functions also in Windows
Diffstat (limited to 'innobase/include')
-rw-r--r--innobase/include/os0sync.h2
-rw-r--r--innobase/include/os0sync.ic2
2 files changed, 2 insertions, 2 deletions
diff --git a/innobase/include/os0sync.h b/innobase/include/os0sync.h
index 89e3f953b50..78374cf8ede 100644
--- a/innobase/include/os0sync.h
+++ b/innobase/include/os0sync.h
@@ -160,6 +160,7 @@ os_fast_mutex_trylock(
was reserved by another
thread */
os_fast_mutex_t* fast_mutex); /* in: mutex to acquire */
+#endif
/**************************************************************
Releases ownership of a fast mutex. */
UNIV_INLINE
@@ -188,7 +189,6 @@ void
os_fast_mutex_free(
/*===============*/
os_fast_mutex_t* fast_mutex); /* in: mutex to free */
-#endif
#ifndef UNIV_NONINL
#include "os0sync.ic"
diff --git a/innobase/include/os0sync.ic b/innobase/include/os0sync.ic
index 8be9a783593..057ad424dee 100644
--- a/innobase/include/os0sync.ic
+++ b/innobase/include/os0sync.ic
@@ -38,6 +38,7 @@ os_fast_mutex_trylock(
return((ulint) pthread_mutex_trylock(fast_mutex));
#endif
}
+#endif
/**************************************************************
Releases ownership of a fast mutex. */
@@ -53,4 +54,3 @@ os_fast_mutex_unlock(
pthread_mutex_unlock(fast_mutex);
#endif
}
-#endif