mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
vbox5: raise rrtimer priority
Make sure timers run at the same priority as component threads, otherwise no timer progress can be made. See 'rtTimeNanoTSInternalRef' (timesupref.h) and 'rtTimerLRThread' (timerlr-generic.cpp).
This commit is contained in:
parent
6e098a9d17
commit
309bc2083e
@ -118,9 +118,15 @@ static int create_thread(pthread_t *thread, const pthread_attr_t *attr,
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* Make sure timers run at the same priority as component threads, otherwise
|
||||
* no timer progress can be made. See 'rtTimeNanoTSInternalRef' (timesupref.h)
|
||||
* and 'rtTimerLRThread' (timerlr-generic.cpp)
|
||||
*/
|
||||
bool const rtthread_timer = rtthread->enmType == RTTHREADTYPE_TIMER;
|
||||
return Libc::pthread_create(thread, start_routine, arg,
|
||||
stack_size, rtthread->szName,
|
||||
cpu_connection(rtthread->enmType),
|
||||
rtthread_timer ? nullptr : cpu_connection(rtthread->enmType),
|
||||
Genode::Affinity::Location());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user