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

Commit5aaf09a

Browse files
committed
So our reward for including <sys/atomic_op.h> seems to be a bunch of
nattering about casting away volatile. Losers.
1 parent057d5c4 commit5aaf09a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/include/storage/s_lock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
6767
* Portions Copyright (c) 1994, Regents of the University of California
6868
*
69-
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.160 2007/07/1602:03:14 tgl Exp $
69+
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.161 2007/07/1604:57:57 tgl Exp $
7070
*
7171
*-------------------------------------------------------------------------
7272
*/
@@ -754,8 +754,8 @@ typedef abilock_t slock_t;
754754

755755
typedefunsignedintslock_t;
756756

757-
#defineTAS(lock)_check_lock(lock, 0, 1)
758-
#defineS_UNLOCK(lock)_clear_lock(lock, 0)
757+
#defineTAS(lock)_check_lock((slock_t *) (lock), 0, 1)
758+
#defineS_UNLOCK(lock)_clear_lock((slock_t *) (lock), 0)
759759
#endif/* _AIX */
760760

761761

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp