From ae5d60dcef6bd4404548e79fbad020dff22f844e Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 8 Jun 2019 13:40:06 +0000 Subject: struct nt_pty_context(): replace the .sync member with a simple atomic lock. --- src/internal/ntapi_pty.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/internal') 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 -- cgit v1.2.3