Commit 94024510 authored by unknown's avatar unknown

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
parent b596c41a
...@@ -160,6 +160,7 @@ os_fast_mutex_trylock( ...@@ -160,6 +160,7 @@ os_fast_mutex_trylock(
was reserved by another was reserved by another
thread */ thread */
os_fast_mutex_t* fast_mutex); /* in: mutex to acquire */ os_fast_mutex_t* fast_mutex); /* in: mutex to acquire */
#endif
/************************************************************** /**************************************************************
Releases ownership of a fast mutex. */ Releases ownership of a fast mutex. */
UNIV_INLINE UNIV_INLINE
...@@ -188,7 +189,6 @@ void ...@@ -188,7 +189,6 @@ void
os_fast_mutex_free( os_fast_mutex_free(
/*===============*/ /*===============*/
os_fast_mutex_t* fast_mutex); /* in: mutex to free */ os_fast_mutex_t* fast_mutex); /* in: mutex to free */
#endif
#ifndef UNIV_NONINL #ifndef UNIV_NONINL
#include "os0sync.ic" #include "os0sync.ic"
......
...@@ -38,6 +38,7 @@ os_fast_mutex_trylock( ...@@ -38,6 +38,7 @@ os_fast_mutex_trylock(
return((ulint) pthread_mutex_trylock(fast_mutex)); return((ulint) pthread_mutex_trylock(fast_mutex));
#endif #endif
} }
#endif
/************************************************************** /**************************************************************
Releases ownership of a fast mutex. */ Releases ownership of a fast mutex. */
...@@ -53,4 +54,3 @@ os_fast_mutex_unlock( ...@@ -53,4 +54,3 @@ os_fast_mutex_unlock(
pthread_mutex_unlock(fast_mutex); pthread_mutex_unlock(fast_mutex);
#endif #endif
} }
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment