From 7fec3b7a368295fc35f628b0cfc94cd5ab6f7e48 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Nov 1999 16:01:32 +0000 Subject: Added call to _Watchdog_Remove to remove the sporadic timer. It was being reinserted onto the ticks chain. --- c/src/exec/posix/src/pthreadsetschedparam.c | 1 + 1 file changed, 1 insertion(+) (limited to 'c/src') diff --git a/c/src/exec/posix/src/pthreadsetschedparam.c b/c/src/exec/posix/src/pthreadsetschedparam.c index 50d3bbcea3..97bc4351b7 100644 --- a/c/src/exec/posix/src/pthreadsetschedparam.c +++ b/c/src/exec/posix/src/pthreadsetschedparam.c @@ -115,6 +115,7 @@ int pthread_setschedparam( case SCHED_SPORADIC: api->ss_high_priority = api->schedparam.sched_priority; + _Watchdog_Remove( &api->Sporadic_timer ); _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread ); break; } -- cgit v1.2.3