summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-06-08 13:40:06 +0000
committermidipix <writeonce@midipix.org>2019-06-08 14:53:40 +0000
commitae5d60dcef6bd4404548e79fbad020dff22f844e (patch)
tree1a31d4b6b88556232bb0ab2751f75256ad675d6f /src/internal
parent1c0e99025e598f2877e7034f5502b36b46a7819c (diff)
downloadntapi-ae5d60dcef6bd4404548e79fbad020dff22f844e.tar.bz2
ntapi-ae5d60dcef6bd4404548e79fbad020dff22f844e.tar.xz
struct nt_pty_context(): replace the .sync member with a simple atomic lock.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/ntapi_pty.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/internal/ntapi_pty.h b/src/internal/ntapi_pty.h
index 711c5f5..a71a750 100644
--- a/src/internal/ntapi_pty.h
+++ b/src/internal/ntapi_pty.h
@@ -1,6 +1,6 @@
/********************************************************/
/* ntapi: Native API core library */
-/* Copyright (C) 2013--2017 Z. Gilboa */
+/* Copyright (C) 2013--2019 Z. Gilboa */
/* Released under GPLv2 and GPLv3; see COPYING.NTAPI. */
/********************************************************/
@@ -17,21 +17,21 @@
#define __PTY_WRITE 1
typedef struct nt_pty_context {
- nt_sync_block sync[2];
- void * addr;
- size_t size;
- void * hport;
- void * hpty;
- void * section;
- void * section_addr;
- size_t section_size;
- nt_guid guid;
- nt_luid luid;
- uint32_t access;
- uint32_t flags;
- uint32_t share;
- uint32_t options;
- nt_iosb iosb;
+ int32_t volatile lock[2];
+ void * addr;
+ size_t size;
+ void * hport;
+ void * hpty;
+ void * section;
+ void * section_addr;
+ size_t section_size;
+ nt_guid guid;
+ nt_luid luid;
+ uint32_t access;
+ uint32_t flags;
+ uint32_t share;
+ uint32_t options;
+ nt_iosb iosb;
} nt_pty;
#endif