projects
/
users
/
andresfreund
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5d004d
)
Use _mm_pause() for win64 spin_delay(), per note from Tsutomu Yamada.
author
Magnus Hagander
<
[email protected]
>
Tue, 5 Jan 2010 11:06:28 +0000
(11:06 +0000)
committer
Magnus Hagander
<
[email protected]
>
Tue, 5 Jan 2010 11:06:28 +0000
(11:06 +0000)
src/include/storage/s_lock.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/storage/s_lock.h
b/src/include/storage/s_lock.h
index ac2ba6e96c480eb76c619e2e6c0188260d78a76f..aede32dd162fd9b09de2246f66eea6c99119135f 100644
(file)
--- a/
src/include/storage/s_lock.h
+++ b/
src/include/storage/s_lock.h
@@
-837,13
+837,13
@@
typedef LONG slock_t;
#define SPIN_DELAY() spin_delay()
/* If using Visual C++ on Win64, inline assembly is unavailable.
- * Use a _
_nop
instrinsic instead of rep nop.
+ * Use a _
mm_pause
instrinsic instead of rep nop.
*/
#if defined(_WIN64)
static __forceinline void
spin_delay(void)
{
- _
_nop
();
+ _
mm_pause
();
}
#else
static __forceinline void