OSDN Git Service

Make sure that inlined S_UNLOCK is marked as an update of a 'volatile'
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Dec 2001 02:58:49 +0000 (02:58 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Dec 2001 02:58:49 +0000 (02:58 +0000)
commit4433eb1dff36707914081efeaff222f81412d60f
tree2e5d04e18ca0a271623ee4fa15210881a8e219ce
parent07009651ce4b2cc866171aed32bb67c8c65137ce
Make sure that inlined S_UNLOCK is marked as an update of a 'volatile'
object.  This should prevent the compiler from reordering loads and stores
into or out of a critical section.
src/include/storage/s_lock.h