1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-ab,v 1.1.1.1 2005/04/25 13:53:37 adam Exp $
--- src/fluid_sys.c.orig Fri Mar 26 01:20:55 2004
+++ src/fluid_sys.c
@@ -630,8 +630,10 @@ new_fluid_timer(int msec, fluid_timer_ca
{
pthread_attr_t *attr = NULL;
pthread_attr_t rt_attr;
+#if !defined(__NetBSD__)
int sched = SCHED_FIFO;
struct sched_param priority;
+#endif
int err;
fluid_timer_t* timer = FLUID_NEW(fluid_timer_t);
@@ -647,6 +649,7 @@ new_fluid_timer(int msec, fluid_timer_ca
timer->auto_destroy = auto_destroy;
err = pthread_attr_init(&rt_attr);
+#if !defined(__NetBSD__)
if (err == 0) {
err = pthread_attr_setschedpolicy(&rt_attr, SCHED_FIFO);
if (err == 0) {
@@ -657,6 +660,7 @@ new_fluid_timer(int msec, fluid_timer_ca
}
}
}
+#endif
if (new_thread) {
err = pthread_create(&timer->thread, attr, fluid_timer_start, (void*) timer);
|