TianoCore EDK2 master
Loading...
Searching...
No Matches
EmuThread.h
Go to the documentation of this file.
1
11#ifndef __EMU_THREAD_THUNK__
12#define __EMU_THREAD_THUNK__
13
15
16typedef
18(EFIAPI *THREAD_THUNK_MUTEX_LOCK)(
19 IN VOID *Mutex
20 );
21
22typedef
24(EFIAPI *THREAD_THUNK_MUTEX_UNLOCK)(
25 IN VOID *Mutex
26 );
27
28typedef
30(EFIAPI *THREAD_THUNK_MUTEX_TRY_LOCK)(
31 IN VOID *Mutex
32 );
33
34typedef
35VOID *
36(EFIAPI *THREAD_THUNK_MUTEX_INIT)(
37 IN VOID
38 );
39
40typedef
42(EFIAPI *THREAD_THUNK_MUTEX_DISTROY)(
43 IN VOID *Mutex
44 );
45
46typedef
47VOID *
48(EFIAPI *THREAD_THUNK_THREAD_ENTRY)(
49 IN VOID *Context
50 );
51
52typedef
54(EFIAPI *THREAD_THUNK_CREATE_THREAD)(
55 IN VOID *Thread,
56 IN VOID *Attribute,
57 IN THREAD_THUNK_THREAD_ENTRY Start,
58 IN VOID *Context
59 );
60
61typedef
62VOID
63(EFIAPI *THREAD_THUNK_EXIT_THREAD)(
64 IN VOID *ValuePtr
65 );
66
67typedef
69(EFIAPI *THREAD_THUNK_SELF)(
70 VOID
71 );
72
74 THREAD_THUNK_MUTEX_LOCK MutexLock;
75 THREAD_THUNK_MUTEX_UNLOCK MutexUnlock;
76 THREAD_THUNK_MUTEX_TRY_LOCK MutexTryLock;
77 THREAD_THUNK_MUTEX_INIT MutexInit;
78 THREAD_THUNK_MUTEX_DISTROY MutexDistroy;
79 THREAD_THUNK_CREATE_THREAD CreateThread;
80 THREAD_THUNK_EXIT_THREAD ExitThread;
81 THREAD_THUNK_SELF Self;
82};
83
84extern EFI_GUID gEmuThreadThunkProtocolGuid;
85
86#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
Definition: Base.h:213