Skip to content

Commit

Permalink
Added GTHREAD type instead of CONTEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
o-marshmallow committed Jun 12, 2017
1 parent e1b47c4 commit 3d25780
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Green.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ typedef struct{
UINTN Id;
} CONTEXT;

typedef CONTEXT GTHREAD;

typedef VOID* (*GREEN_FUNCTION)(VOID*);

VOID ThreadInitialize(VOID);
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ UefiMain(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
CONST UINT32 ScreenWidth = Gop->Mode->Info->HorizontalResolution;
CONST UINT32 GameWidth = ScreenWidth / CELLSIZE;

CONTEXT thread1;
GTHREAD thread1;
MUTEX lock;
MutexInit(&lock);
ThreadInitialize();
Expand Down

0 comments on commit 3d25780

Please sign in to comment.