mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Spark/Linux patch for locking, from Tom Szybist
This commit is contained in:
parent
da72b903ff
commit
b69359e2d7
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.12 1997/11/07 21:35:41 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.13 1997/12/09 20:55:33 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -345,11 +345,12 @@ tas_dummy()
|
|||||||
#define S_LOCK(lock) do \
|
#define S_LOCK(lock) do \
|
||||||
{ \
|
{ \
|
||||||
slock_t _res; \
|
slock_t _res; \
|
||||||
|
slock_t *tmplock = lock ; \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
__asm__("ldstub [%1], %0" \
|
__asm__("ldstub [%1], %0" \
|
||||||
: "=&r"(_res) \
|
: "=&r"(_res), "=r"(tmplock) \
|
||||||
: "r"(lock)); \
|
: "1"(tmplock)); \
|
||||||
} while (_res != 0); \
|
} while (_res != 0); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user