Skip to content

Commit dfec2b0

Browse files
committed
Remove "volatile" from tas function, per TOm.
1 parent 9fc69d6 commit dfec2b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/storage/s_lock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* Portions Copyright (c) 1996-2006, 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.150 2006/04/27 22:28:42 momjian Exp $
69+
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.151 2006/04/28 03:43:19 momjian Exp $
7070
*
7171
*-------------------------------------------------------------------------
7272
*/
@@ -767,7 +767,7 @@ typedef unsigned char slock_t;
767767
#define HAS_TEST_AND_SET
768768
typedef unsigned char slock_t;
769769

770-
extern volatile slock_t pg_atomic_cas(volatile slock_t *lock, slock_t with,
770+
extern slock_t pg_atomic_cas(volatile slock_t *lock, slock_t with,
771771
slock_t cmp);
772772

773773
#define TAS(a) (pg_atomic_cas((a), 1, 0) != 0)

0 commit comments

Comments
 (0)