Skip to content

Commit bcbc718

Browse files
committed
Define LWP_PRIO_LOWEST
1 parent 6a56933 commit bcbc718

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

gc/ogc/lwp.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@ distribution.
6464
#include <gctypes.h>
6565
#include <time.h>
6666

67-
#define LWP_CLOSED -1
68-
#define LWP_SUCCESSFUL 0
69-
#define LWP_ALREADY_SUSPENDED 1
70-
#define LWP_NOT_SUSPENDED 2
71-
72-
#define LWP_PRIO_IDLE 0
73-
#define LWP_PRIO_NORMAL 64
74-
#define LWP_PRIO_HIGHEST 127
67+
#define LWP_CLOSED -1
68+
#define LWP_SUCCESSFUL 0
69+
#define LWP_ALREADY_SUSPENDED 1
70+
#define LWP_NOT_SUSPENDED 2
71+
72+
#define LWP_PRIO_IDLE 0
73+
#define LWP_PRIO_LOWEST 1
74+
#define LWP_PRIO_NORMAL 64
75+
#define LWP_PRIO_HIGHEST 127
7576

7677
#define LWP_THREAD_NULL 0xffffffff
7778
#define LWP_TQUEUE_NULL 0xffffffff

libogc/usbmouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ distribution.
4242
#include <ogc/semaphore.h>
4343

4444
#define MOUSE_THREAD_STACKSIZE (1024 * 4)
45-
#define MOUSE_THREAD_PRIO 65
45+
#define MOUSE_THREAD_PRIO (LWP_PRIO_NORMAL + 1)
4646

4747
#define MOUSE_MAX_DATA 32
4848

libwiikeyboard/keyboard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ distribution.
4848
#include "wsksymvar.h"
4949

5050
#define KBD_THREAD_STACKSIZE (1024 * 4)
51-
#define KBD_THREAD_PRIO 64
51+
#define KBD_THREAD_PRIO (LWP_PRIO_NORMAL)
5252
#define KBD_THREAD_UDELAY (1000 * 10)
5353
#define KBD_THREAD_KBD_SCAN_INTERVAL (3 * 100)
5454

0 commit comments

Comments
 (0)