about summary refs log tree commit diff stats
path: root/src/include/box64context.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-02 15:18:23 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-02 15:18:23 +0100
commiteb6c4594e1831daeddc469ed69c4dee917e627c1 (patch)
treeff8e5ec2506fde9ff69ca0850e84667669c8f471 /src/include/box64context.h
parent1b9d1dc6093028ceb0f2eeeccf9cfbc5610fcf30 (diff)
downloadbox64-eb6c4594e1831daeddc469ed69c4dee917e627c1.tar.gz
box64-eb6c4594e1831daeddc469ed69c4dee917e627c1.zip
Added basic thread infrastructure
Diffstat (limited to 'src/include/box64context.h')
-rwxr-xr-xsrc/include/box64context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h
index e6b4be63..8422a765 100755
--- a/src/include/box64context.h
+++ b/src/include/box64context.h
@@ -9,6 +9,7 @@ typedef struct cleanup_s cleanup_t;
 typedef struct x64emu_s x64emu_t;
 typedef struct zydis_s zydis_t;
 typedef struct zydis_dec_s zydis_dec_t;
+typedef struct kh_threadstack_s kh_threadstack_t;
 
 typedef void* (*procaddess_t)(const char* name);
 typedef void* (*vkprocaddess_t)(void* instance, const char* name);
@@ -57,6 +58,10 @@ typedef struct box64context_s {
 
     uintptr_t           ep;             // entry point
 
+    kh_threadstack_t    *stacksizes;    // stack sizes attributes for thread (temporary)
+
+    pthread_mutex_t     mutex_thread;
+
     pthread_key_t       tlskey;     // then tls key to have actual tlsdata
     void*               tlsdata;    // the initial global tlsdata
     int32_t             tlssize;    // wanted size of tlsdata