Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion include/alignment.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
// <summary></summary>
// ***********************************************************************
#pragma once
#define ALIGNMENT 16
// Match the CPU cache line size (see cache.h) to prevent false sharing between
// concurrently-written fields that happen to land on the same cache line.
#define ALIGNMENT 64
Comment on lines +11 to +13

#pragma pack(ALIGNMENT)
#define class_alignment alignas(ALIGNMENT)
Comment on lines +13 to 16