mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-20 16:49:57 -04:00
Triforce v0.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
15
host/posix/tlhelp32.h
Normal file
15
host/posix/tlhelp32.h
Normal file
@@ -0,0 +1,15 @@
|
||||
/* (linux) Tool Help: the thread snapshots the profiler and the stall reports walk. There is no snapshot here
|
||||
(CreateToolhelp32Snapshot fails), so those debugging aids find no threads. */
|
||||
#ifndef HOOKSHOT_POSIX_TLHELP32_H
|
||||
#define HOOKSHOT_POSIX_TLHELP32_H
|
||||
#include <windows.h>
|
||||
#define TH32CS_SNAPTHREAD 0x4
|
||||
typedef struct {
|
||||
DWORD dwSize, cntUsage, th32ThreadID, th32OwnerProcessID;
|
||||
LONG tpBasePri, tpDeltaPri;
|
||||
DWORD dwFlags;
|
||||
} THREADENTRY32;
|
||||
static inline HANDLE CreateToolhelp32Snapshot(DWORD flags, DWORD pid) { (void)flags, (void)pid; return INVALID_HANDLE_VALUE; }
|
||||
static inline BOOL Thread32First(HANDLE s, THREADENTRY32 *te) { (void)s, (void)te; return FALSE; }
|
||||
static inline BOOL Thread32Next(HANDLE s, THREADENTRY32 *te) { (void)s, (void)te; return FALSE; }
|
||||
#endif
|
||||
Reference in New Issue
Block a user