diff options
Diffstat (limited to 'EmulatorPkg/Include/Protocol/EmuThread.h')
-rw-r--r-- | EmulatorPkg/Include/Protocol/EmuThread.h | 49 |
1 files changed, 19 insertions, 30 deletions
diff --git a/EmulatorPkg/Include/Protocol/EmuThread.h b/EmulatorPkg/Include/Protocol/EmuThread.h index 89e562d7af..fbde40bb4c 100644 --- a/EmulatorPkg/Include/Protocol/EmuThread.h +++ b/EmulatorPkg/Include/Protocol/EmuThread.h @@ -11,55 +11,47 @@ #ifndef __EMU_THREAD_THUNK__
#define __EMU_THREAD_THUNK__
-
-typedef struct _EMU_THREAD_THUNK_PROTOCOL EMU_THREAD_THUNK_PROTOCOL;
-
+typedef struct _EMU_THREAD_THUNK_PROTOCOL EMU_THREAD_THUNK_PROTOCOL;
typedef
UINTN
-(EFIAPI *THREAD_THUNK_MUTEX_LOCK) (
+(EFIAPI *THREAD_THUNK_MUTEX_LOCK)(
IN VOID *Mutex
);
-
typedef
UINTN
-(EFIAPI *THREAD_THUNK_MUTEX_UNLOCK) (
+(EFIAPI *THREAD_THUNK_MUTEX_UNLOCK)(
IN VOID *Mutex
);
-
typedef
UINTN
-(EFIAPI *THREAD_THUNK_MUTEX_TRY_LOCK) (
+(EFIAPI *THREAD_THUNK_MUTEX_TRY_LOCK)(
IN VOID *Mutex
);
-
typedef
VOID *
-(EFIAPI *THREAD_THUNK_MUTEX_INIT) (
+(EFIAPI *THREAD_THUNK_MUTEX_INIT)(
IN VOID
);
-
typedef
UINTN
-(EFIAPI *THREAD_THUNK_MUTEX_DISTROY) (
+(EFIAPI *THREAD_THUNK_MUTEX_DISTROY)(
IN VOID *Mutex
);
-
-
typedef
VOID *
-(EFIAPI *THREAD_THUNK_THREAD_ENTRY) (
+(EFIAPI *THREAD_THUNK_THREAD_ENTRY)(
IN VOID *Context
);
typedef
UINTN
-(EFIAPI *THREAD_THUNK_CREATE_THREAD) (
+(EFIAPI *THREAD_THUNK_CREATE_THREAD)(
IN VOID *Thread,
IN VOID *Attribute,
IN THREAD_THUNK_THREAD_ENTRY Start,
@@ -68,30 +60,27 @@ UINTN typedef
VOID
-(EFIAPI *THREAD_THUNK_EXIT_THREAD) (
+(EFIAPI *THREAD_THUNK_EXIT_THREAD)(
IN VOID *ValuePtr
);
-
typedef
UINTN
-(EFIAPI *THREAD_THUNK_SELF) (
+(EFIAPI *THREAD_THUNK_SELF)(
VOID
);
-
struct _EMU_THREAD_THUNK_PROTOCOL {
- THREAD_THUNK_MUTEX_LOCK MutexLock;
- THREAD_THUNK_MUTEX_UNLOCK MutexUnlock;
- THREAD_THUNK_MUTEX_TRY_LOCK MutexTryLock;
- THREAD_THUNK_MUTEX_INIT MutexInit;
- THREAD_THUNK_MUTEX_DISTROY MutexDistroy;
- THREAD_THUNK_CREATE_THREAD CreateThread;
- THREAD_THUNK_EXIT_THREAD ExitThread;
- THREAD_THUNK_SELF Self;
+ THREAD_THUNK_MUTEX_LOCK MutexLock;
+ THREAD_THUNK_MUTEX_UNLOCK MutexUnlock;
+ THREAD_THUNK_MUTEX_TRY_LOCK MutexTryLock;
+ THREAD_THUNK_MUTEX_INIT MutexInit;
+ THREAD_THUNK_MUTEX_DISTROY MutexDistroy;
+ THREAD_THUNK_CREATE_THREAD CreateThread;
+ THREAD_THUNK_EXIT_THREAD ExitThread;
+ THREAD_THUNK_SELF Self;
};
-extern EFI_GUID gEmuThreadThunkProtocolGuid;
+extern EFI_GUID gEmuThreadThunkProtocolGuid;
#endif
-
|