summaryrefslogtreecommitdiff
path: root/gthread/gthread-impl.c
diff options
context:
space:
mode:
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>2001-04-03 12:49:44 +0000
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>2001-04-03 12:49:44 +0000
commit72cab5027f3b61424261a24ef96f0bc92fedd182 (patch)
treeac43420e5025e22d6b8365fa4d4ec7ec2d11ce4f /gthread/gthread-impl.c
parentd8dd1ac152160d5b42fcc59520e521a5d774ee98 (diff)
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 ().
Diffstat (limited to 'gthread/gthread-impl.c')
-rw-r--r--gthread/gthread-impl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gthread/gthread-impl.c b/gthread/gthread-impl.c
index 01c682be0..a00012c34 100644
--- a/gthread/gthread-impl.c
+++ b/gthread/gthread-impl.c
@@ -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);