* 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> | ||||
| 
 | ||||
| 	* 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 | ||||
| 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
 | ||||
|      values on 9x and NT4 are -15, -2, -1, 0, 1, 2, 15. */ | ||||
|   switch (p) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue