* bsd_mutex.cc (win_priority): Actually calculate p from priority.
This commit is contained in:
parent
cd341e5613
commit
f8e58afb11
@ -1,3 +1,7 @@
|
|||||||
|
2004-07-19 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* bsd_mutex.cc (win_priority): Actually calculate p from priority.
|
||||||
|
|
||||||
2004-06-03 Corinna Vinschen <corinna@vinschen.de>
|
2004-06-03 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
|
* shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
|
||||||
|
@ -109,7 +109,7 @@ msleep_event_name (void *ident, char *name)
|
|||||||
static int
|
static int
|
||||||
win_priority (int priority)
|
win_priority (int priority)
|
||||||
{
|
{
|
||||||
int p = (int)((p) & PRIO_MASK) - PZERO;
|
int p = (int)((priority) & PRIO_MASK) - PZERO;
|
||||||
/* Generating a valid priority value is a bit tricky. The only valid
|
/* Generating a valid priority value is a bit tricky. The only valid
|
||||||
values on 9x and NT4 are -15, -2, -1, 0, 1, 2, 15. */
|
values on 9x and NT4 are -15, -2, -1, 0, 1, 2, 15. */
|
||||||
switch (p)
|
switch (p)
|
||||||
|
Loading…
Reference in New Issue
Block a user