mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Added special case for priorities on FreeBSD. Thanks to David Reid
2001-04-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-posix.c: Added special case for priorities on FreeBSD. Thanks to David Reid <dreid@jetnet.co.uk> for the info. * gthread-impl.c: Made two macros safe with ().
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
d8dd1ac152
commit
72cab5027f
@@ -52,12 +52,12 @@ static gint g_thread_priority_map [G_THREAD_PRIORITY_URGENT];
|
||||
|
||||
#ifndef PRIORITY_NORMAL_VALUE
|
||||
# define PRIORITY_NORMAL_VALUE \
|
||||
PRIORITY_LOW_VALUE + (PRIORITY_URGENT_VALUE - PRIORITY_LOW_VALUE) * 40 / 100
|
||||
(PRIORITY_LOW_VALUE + (PRIORITY_URGENT_VALUE - PRIORITY_LOW_VALUE) * 4 / 10)
|
||||
#endif /* PRIORITY_NORMAL_VALUE */
|
||||
|
||||
#ifndef PRIORITY_HIGH_VALUE
|
||||
# define PRIORITY_HIGH_VALUE \
|
||||
PRIORITY_LOW_VALUE + (PRIORITY_URGENT_VALUE - PRIORITY_LOW_VALUE) * 80 / 100
|
||||
(PRIORITY_LOW_VALUE + (PRIORITY_URGENT_VALUE - PRIORITY_LOW_VALUE) * 8 / 10)
|
||||
#endif /* PRIORITY_HIGH_VALUE */
|
||||
|
||||
void g_mutex_init (void);
|
||||
|
Reference in New Issue
Block a user