summaryrefslogtreecommitdiffhomepage
path: root/include/ntapi/nt_sync.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-08-12 08:49:37 -0400
committermidipix <writeonce@midipix.org>2016-08-12 09:41:49 -0400
commit563a1e17dcddd5b622d07d431a36e74b241993e1 (patch)
tree70d23a9728fe704d622041cb08d7bb151da4d112 /include/ntapi/nt_sync.h
parent10e33da88f05b6808532713b0317669a0fdf549a (diff)
downloadntapi-563a1e17dcddd5b622d07d431a36e74b241993e1.tar.bz2
ntapi-563a1e17dcddd5b622d07d431a36e74b241993e1.tar.xz
synchronization block: make all value assignments atomic.
Diffstat (limited to 'include/ntapi/nt_sync.h')
-rw-r--r--include/ntapi/nt_sync.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ntapi/nt_sync.h b/include/ntapi/nt_sync.h
index 5b28833..99508dd 100644
--- a/include/ntapi/nt_sync.h
+++ b/include/ntapi/nt_sync.h
@@ -122,7 +122,7 @@ typedef struct _nt_io_completion_basic_information {
typedef union __attr_aligned__(NT_SYNC_BLOCK_SIZE) _nt_sync_block {
- char cache_line[NT_SYNC_BLOCK_SIZE];
+ intptr_t cache_line[NT_SYNC_BLOCK_SIZE/sizeof(intptr_t)];
struct {
int32_t tid;
int32_t pid;