|
PostgreSQL Source Code git master
|
#include "storage/s_lock.h"

Go to the source code of this file.
Functions | |
| static void | SpinLockInit (volatile slock_t *lock) |
| static void | SpinLockAcquire (volatile slock_t *lock) |
| static void | SpinLockRelease (volatile slock_t *lock) |
Definition at line 56 of file spin.h.
References S_LOCK.
Referenced by _brin_parallel_heapscan(), _brin_parallel_scan_and_build(), _bt_parallel_heapscan(), _bt_parallel_scan_and_sort(), _gin_parallel_heapscan(), _gin_parallel_scan_and_build(), AbortStrongLockAcquire(), AdvanceXLInsertBuffer(), ApplyWalRecord(), AuxiliaryProcKill(), BarrierArriveAndDetachExceptLast(), BarrierArriveAndWait(), BarrierAttach(), BarrierDetachImpl(), BarrierParticipants(), BeginStrongLockAcquire(), BitmapDoneInitializingSharedState(), BitmapShouldInitializeSharedState(), check_and_set_sync_info(), CheckLogicalSlotExists(), CheckpointerMain(), CheckPointReplicationSlots(), CheckRecoveryConsistency(), CheckXLogRemoved(), CleanupProcSignalState(), ClockSweepTick(), compute_min_nonremovable_xid(), ConditionVariableBroadcast(), ConditionVariableCancelSleep(), ConditionVariablePrepareToSleep(), ConditionVariableSignal(), ConditionVariableTimedSleep(), ConfirmRecoveryPaused(), copy_replication_slot(), CreateCheckPoint(), CreateDecodingContext(), CreateInitDecodingContext(), CreateRestartPoint(), DecodingContextFindStartpoint(), do_pg_backup_start(), do_pg_backup_stop(), drop_local_obsolete_slots(), element_alloc(), EmitProcSignalBarrier(), entry_dealloc(), entry_reset(), FindDeletedTupleInLocalRel(), FirstCallSinceLastCheckpoint(), get_hash_entry(), GetCurrentChunkReplayStartTime(), GetCurrentReplayRecPtr(), GetInsertRecPtr(), GetLatestXTime(), GetLWTrancheName(), GetRecoveryPauseState(), GetRecoveryState(), GetRedoRecPtr(), GetReplicationApplyDelay(), GetReplicationTransferLatency(), GetWALInsertionTimeLineIfSet(), GetWalRcvFlushRecPtr(), GetXLogInsertRecPtr(), GetXLogReplayRecPtr(), hash_search_with_hash_value(), HaveNFreeProcs(), HotStandbyActive(), init_conflict_slot_xmin(), InitAuxiliaryProcess(), InitProcess(), InitWalSenderSlot(), injection_points_wakeup(), injection_wait(), InvalidateObsoleteReplicationSlots(), InvalidatePossiblyObsoleteSlot(), leader_takeover_tapes(), local_sync_slot_required(), lock_twophase_recover(), LockRefindAndRelease(), LogicalConfirmReceivedLocation(), LogicalIncreaseRestartDecodingForSlot(), LogicalIncreaseXminForSlot(), logicalrep_pa_worker_stop(), LogicalRepSyncTableStart(), LWLockNewTrancheId(), need_gc_qtexts(), pa_allocate_worker(), pa_get_fileset_state(), pa_get_xact_state(), pa_set_fileset_state(), pa_set_xact_state(), ParallelApplyWorkerMain(), ParallelWorkerReportLastRecEnd(), PerformWalRecovery(), pg_atomic_compare_exchange_u64_impl(), pg_atomic_fetch_add_u64_impl(), pg_get_replication_slots(), pg_physical_replication_slot_advance(), pg_stat_get_wal_receiver(), pg_stat_get_wal_senders(), pg_stat_statements_info(), pg_stat_statements_internal(), pgss_store(), PhysicalConfirmReceivedLocation(), PhysicalReplicationSlotNewXmin(), ProcessStandbyHSFeedbackMessage(), ProcessStandbyPSRequestMessage(), ProcessStandbyReplyMessage(), ProcessSyncingTablesForApply(), ProcessSyncingTablesForSync(), ProcessWalSndrMessage(), ProcKill(), ProcSignalInit(), PromoteIsTriggered(), qtext_store(), ReadReplicationSlot(), RecoveryRestartPoint(), RemoveLocalLock(), ReplicationSlotAcquire(), ReplicationSlotAlter(), ReplicationSlotCleanup(), ReplicationSlotCreate(), ReplicationSlotDropPtr(), ReplicationSlotMarkDirty(), ReplicationSlotPersist(), ReplicationSlotRelease(), ReplicationSlotReserveWal(), ReplicationSlotsComputeLogicalRestartLSN(), ReplicationSlotsComputeRequiredLSN(), ReplicationSlotsComputeRequiredXmin(), ReplicationSlotsCountDBSlots(), ReplicationSlotsDropDBSlots(), ReplicationSlotSetInactiveSince(), RequestCheckpoint(), RequestXLogStreaming(), reserve_wal_for_local_slot(), ReserveXLogInsertLocation(), ReserveXLogSwitch(), reset_syncing_flag(), SaveSlotToPath(), SendCancelRequest(), SendProcSignal(), SetCurrentChunkStartTime(), SetLatestXTime(), SetPromoteIsTriggered(), SetRecoveryPause(), SetWalWriterSleeping(), SharedFileSetAttach(), SharedFileSetOnDetach(), shm_mq_detach_internal(), shm_mq_get_receiver(), shm_mq_get_sender(), shm_mq_sendv(), shm_mq_set_receiver(), shm_mq_set_sender(), shm_mq_wait_internal(), shm_toc_allocate(), shm_toc_freespace(), shm_toc_insert(), ShmemAllocRaw(), ShutDownSlotSync(), ShutdownWalRcv(), SIGetDataEntries(), SIInsertDataEntries(), slotsync_worker_onexit(), StandbySlotsHaveCaughtup(), StartLogicalReplication(), StartReplication(), StartupXLOG(), stop_conflict_info_retention(), StrategyNotifyBgWriter(), StrategySyncStart(), SwitchIntoArchiveRecovery(), synchronize_one_slot(), SyncRepGetCandidateStandbys(), SyncRepInitConfig(), table_block_parallelscan_startblock_init(), test_shm_mq_main(), test_spinlock(), update_conflict_slot_xmin(), update_local_synced_slot(), update_slotsync_skip_stats(), UpdateLastRemovedPtr(), wait_for_local_flush(), wait_for_workers_to_become_ready(), WaitEventCustomNew(), WaitXLogInsertionsToFinish(), WalRcvDie(), WalRcvForceReply(), WalRcvGetState(), WalRcvRunning(), WalRcvStreaming(), WalRcvWaitForStartPosition(), WalReceiverMain(), WalSndInitStopping(), WalSndKill(), WalSndRqstFileReload(), WalSndSetState(), WalSndWaitStopping(), worker_freeze_result_tape(), worker_get_identifier(), xlog_redo(), XLogBackgroundFlush(), XLogFlush(), XLogGetLastRemovedSegno(), XLogGetReplicationSlotMinimumLSN(), XLogInsertRecord(), XLogSendLogical(), XLogSendPhysical(), XLogSetAsyncXactLSN(), XLogSetReplicationSlotMinimumLSN(), XLogWalRcvFlush(), and XLogWrite().
Definition at line 50 of file spin.h.
References S_INIT_LOCK.
Referenced by _brin_begin_parallel(), _bt_begin_parallel(), _gin_begin_parallel(), ApplyLauncherShmemInit(), BarrierInit(), CheckpointerShmemInit(), ConditionVariableInit(), entry_alloc(), ExecBitmapHeapInitializeDSM(), init_htab(), InitializeParallelDSM(), InitProcGlobal(), InitShmemAllocator(), injection_point_init_state(), LockManagerShmemInit(), pa_setup_dsm(), pg_atomic_init_u64_impl(), pgss_shmem_startup(), ProcSignalShmemInit(), ReplicationSlotsShmemInit(), setup_dynamic_shared_memory(), SharedFileSetInit(), SharedInvalShmemInit(), shm_mq_create(), shm_toc_create(), SlotSyncShmemInit(), StrategyInitialize(), table_block_parallelscan_initialize(), test_spinlock(), tuplesort_initialize_shared(), WaitEventCustomShmemInit(), WalRcvShmemInit(), WalSndShmemInit(), XLogRecoveryShmemInit(), and XLOGShmemInit().
Definition at line 62 of file spin.h.
References S_UNLOCK.
Referenced by _brin_parallel_heapscan(), _brin_parallel_scan_and_build(), _bt_parallel_heapscan(), _bt_parallel_scan_and_sort(), _gin_parallel_heapscan(), _gin_parallel_scan_and_build(), AbortStrongLockAcquire(), AdvanceXLInsertBuffer(), ApplyWalRecord(), AuxiliaryProcKill(), BarrierArriveAndDetachExceptLast(), BarrierArriveAndWait(), BarrierAttach(), BarrierDetachImpl(), BarrierParticipants(), BeginStrongLockAcquire(), BitmapDoneInitializingSharedState(), BitmapShouldInitializeSharedState(), check_and_set_sync_info(), CheckLogicalSlotExists(), CheckpointerMain(), CheckPointReplicationSlots(), CheckRecoveryConsistency(), CheckXLogRemoved(), CleanupProcSignalState(), ClockSweepTick(), compute_min_nonremovable_xid(), ConditionVariableBroadcast(), ConditionVariableCancelSleep(), ConditionVariablePrepareToSleep(), ConditionVariableSignal(), ConditionVariableTimedSleep(), ConfirmRecoveryPaused(), copy_replication_slot(), CreateCheckPoint(), CreateDecodingContext(), CreateInitDecodingContext(), CreateRestartPoint(), DecodingContextFindStartpoint(), do_pg_backup_start(), do_pg_backup_stop(), drop_local_obsolete_slots(), element_alloc(), EmitProcSignalBarrier(), entry_dealloc(), entry_reset(), FindDeletedTupleInLocalRel(), FirstCallSinceLastCheckpoint(), get_hash_entry(), GetCurrentChunkReplayStartTime(), GetCurrentReplayRecPtr(), GetInsertRecPtr(), GetLatestXTime(), GetLWTrancheName(), GetRecoveryPauseState(), GetRecoveryState(), GetRedoRecPtr(), GetReplicationApplyDelay(), GetReplicationTransferLatency(), GetWALInsertionTimeLineIfSet(), GetWalRcvFlushRecPtr(), GetXLogInsertRecPtr(), GetXLogReplayRecPtr(), hash_search_with_hash_value(), HaveNFreeProcs(), HotStandbyActive(), init_conflict_slot_xmin(), InitAuxiliaryProcess(), InitProcess(), InitWalSenderSlot(), injection_points_wakeup(), injection_wait(), InvalidateObsoleteReplicationSlots(), InvalidatePossiblyObsoleteSlot(), leader_takeover_tapes(), local_sync_slot_required(), lock_twophase_recover(), LockRefindAndRelease(), LogicalConfirmReceivedLocation(), LogicalIncreaseRestartDecodingForSlot(), LogicalIncreaseXminForSlot(), logicalrep_pa_worker_stop(), LogicalRepSyncTableStart(), LWLockNewTrancheId(), need_gc_qtexts(), pa_allocate_worker(), pa_get_fileset_state(), pa_get_xact_state(), pa_set_fileset_state(), pa_set_xact_state(), ParallelApplyWorkerMain(), ParallelWorkerReportLastRecEnd(), PerformWalRecovery(), pg_atomic_compare_exchange_u64_impl(), pg_atomic_fetch_add_u64_impl(), pg_get_replication_slots(), pg_physical_replication_slot_advance(), pg_stat_get_wal_receiver(), pg_stat_get_wal_senders(), pg_stat_statements_info(), pg_stat_statements_internal(), pgss_store(), PhysicalConfirmReceivedLocation(), PhysicalReplicationSlotNewXmin(), ProcessStandbyHSFeedbackMessage(), ProcessStandbyPSRequestMessage(), ProcessStandbyReplyMessage(), ProcessSyncingTablesForApply(), ProcessSyncingTablesForSync(), ProcessWalSndrMessage(), ProcKill(), ProcSignalInit(), PromoteIsTriggered(), qtext_store(), ReadReplicationSlot(), RecoveryRestartPoint(), RemoveLocalLock(), ReplicationSlotAcquire(), ReplicationSlotAlter(), ReplicationSlotCleanup(), ReplicationSlotCreate(), ReplicationSlotDropPtr(), ReplicationSlotMarkDirty(), ReplicationSlotPersist(), ReplicationSlotRelease(), ReplicationSlotReserveWal(), ReplicationSlotsComputeLogicalRestartLSN(), ReplicationSlotsComputeRequiredLSN(), ReplicationSlotsComputeRequiredXmin(), ReplicationSlotsCountDBSlots(), ReplicationSlotsDropDBSlots(), ReplicationSlotSetInactiveSince(), RequestCheckpoint(), RequestXLogStreaming(), reserve_wal_for_local_slot(), ReserveXLogInsertLocation(), ReserveXLogSwitch(), reset_syncing_flag(), SaveSlotToPath(), SendCancelRequest(), SendProcSignal(), SetCurrentChunkStartTime(), SetLatestXTime(), SetPromoteIsTriggered(), SetRecoveryPause(), SetWalWriterSleeping(), SharedFileSetAttach(), SharedFileSetOnDetach(), shm_mq_detach_internal(), shm_mq_get_receiver(), shm_mq_get_sender(), shm_mq_sendv(), shm_mq_set_receiver(), shm_mq_set_sender(), shm_mq_wait_internal(), shm_toc_allocate(), shm_toc_freespace(), shm_toc_insert(), ShmemAllocRaw(), ShutDownSlotSync(), ShutdownWalRcv(), SIGetDataEntries(), SIInsertDataEntries(), slotsync_worker_onexit(), StandbySlotsHaveCaughtup(), StartLogicalReplication(), StartReplication(), StartupXLOG(), stop_conflict_info_retention(), StrategyNotifyBgWriter(), StrategySyncStart(), SwitchIntoArchiveRecovery(), synchronize_one_slot(), SyncRepGetCandidateStandbys(), SyncRepInitConfig(), table_block_parallelscan_startblock_init(), test_shm_mq_main(), test_spinlock(), update_conflict_slot_xmin(), update_local_synced_slot(), update_slotsync_skip_stats(), UpdateLastRemovedPtr(), wait_for_local_flush(), wait_for_workers_to_become_ready(), WaitEventCustomNew(), WaitXLogInsertionsToFinish(), WalRcvDie(), WalRcvForceReply(), WalRcvGetState(), WalRcvRunning(), WalRcvStreaming(), WalRcvWaitForStartPosition(), WalReceiverMain(), WalSndInitStopping(), WalSndKill(), WalSndRqstFileReload(), WalSndSetState(), WalSndWaitStopping(), worker_freeze_result_tape(), worker_get_identifier(), xlog_redo(), XLogBackgroundFlush(), XLogFlush(), XLogGetLastRemovedSegno(), XLogGetReplicationSlotMinimumLSN(), XLogInsertRecord(), XLogSendLogical(), XLogSendPhysical(), XLogSetAsyncXactLSN(), XLogSetReplicationSlotMinimumLSN(), XLogWalRcvFlush(), and XLogWrite().