summaryrefslogtreecommitdiffhomepage
path: root/src/msq
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-12-04 02:02:55 +0000
committermidipix <writeonce@midipix.org>2020-12-04 13:24:16 +0000
commitef6024ad7dbf0c7e3b59ad007b03bbce5a6abb3d (patch)
tree415bc361992bfee3e87e0619220909d8c542f2dd /src/msq
parent9a449a25d26566c1a0c3e9d3e89e1ffc12e6bc4c (diff)
downloadntapi-ef6024ad7dbf0c7e3b59ad007b03bbce5a6abb3d.tar.bz2
ntapi-ef6024ad7dbf0c7e3b59ad007b03bbce5a6abb3d.tar.xz
internals: ipc connections: use volatile type for book-keeping variables.
Diffstat (limited to 'src/msq')
-rw-r--r--src/msq/ntapi_msq_recv.c8
-rw-r--r--src/msq/ntapi_msq_send.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/msq/ntapi_msq_recv.c b/src/msq/ntapi_msq_recv.c
index 8c4a4b0..4ef1784 100644
--- a/src/msq/ntapi_msq_recv.c
+++ b/src/msq/ntapi_msq_recv.c
@@ -15,9 +15,9 @@
#include "ntapi_impl.h"
static int32_t __msq_recv_return(
- void * mapaddr,
- intptr_t * hlock,
- int32_t status)
+ void * mapaddr,
+ intptr_t volatile * hlock,
+ int32_t status)
{
if (hlock)
at_store(hlock,0);
@@ -48,7 +48,7 @@ int32_t __stdcall __ntapi_msq_recv(
void * secaddr;
size_t secsize;
nt_msq_info_msg msg;
- intptr_t * hlock;
+ intptr_t volatile * hlock;
/* validate */
if (!iosb)
diff --git a/src/msq/ntapi_msq_send.c b/src/msq/ntapi_msq_send.c
index 53d9f0c..f6ca27f 100644
--- a/src/msq/ntapi_msq_send.c
+++ b/src/msq/ntapi_msq_send.c
@@ -15,9 +15,9 @@
#include "ntapi_impl.h"
static int32_t __msq_send_return(
- void * mapaddr,
- intptr_t * hlock,
- int32_t status)
+ void * mapaddr,
+ intptr_t volatile * hlock,
+ int32_t status)
{
if (hlock)
at_store(hlock,0);
@@ -48,7 +48,7 @@ int32_t __stdcall __ntapi_msq_send(
void * secaddr;
size_t secsize;
nt_msq_info_msg msg;
- intptr_t * hlock;
+ intptr_t volatile * hlock;
/* validate */
if (!iosb)