Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb69359e

Browse files
committed
Spark/Linux patch for locking, from Tom Szybist
1 parentda72b90 commitb69359e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/include/storage/s_lock.h‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.12 1997/11/07 21:35:41 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.13 1997/12/09 20:55:33 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -345,11 +345,12 @@ tas_dummy()
345345
#defineS_LOCK(lock)do \
346346
{ \
347347
slock_t_res; \
348+
slock_t*tmplock = lock ; \
348349
do \
349350
{ \
350351
__asm__("ldstub [%1], %0" \
351-
:"=&r"(_res) \
352-
:"r"(lock)); \
352+
:"=&r"(_res), "=r"(tmplock) \
353+
:"1"(tmplock)); \
353354
} while (_res != 0); \
354355
} while (0)
355356

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp