Commit e2389946 authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi
Browse files

os0sync.h Define os_fast_mutex functions also in Windows

os0sync.ic	Define os_fast_mutex functions also in Windows
parent 0b064c3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"
+1 −1
Original line number Diff line number Diff line
@@ -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