|
Re: [RFC] shadow threads with prio 0 / SCHED_NORMAL: msg#00190linux.real-time.xenomai.devel
Gilles Chanteperdrix wrote: Philippe Gerum wrote: Nope, this is obviously not what I meant... :o> This is how one would create hybrids, without changing anything else to the current interface: pthread_attr_init(&attr); ... pthread_attr_setschedpolicy(&attr,SCHED_OTHER); ... pthread_create(...,&attr,&foo,NULL); and, void *foo (void *cookie) { /* The following call maps a shadow thread to "current", but currently only accepts SCHED_FIFO, and would be changed to allow SCHED_OTHER/NORMAL. */ pthread_setschedparam(...,SCHED_OTHER,...); /* OR, for the native API */ rt_task_shadow(...,pri=0,...); } -- Philippe. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [RFC] shadow threads with prio 0 / SCHED_NORMAL: 00190, Gilles Chanteperdrix |
|---|---|
| Next by Date: | Re: [RFC] shadow threads with prio 0 / SCHED_NORMAL: 00190, Jan Kiszka |
| Previous by Thread: | Re: [RFC] shadow threads with prio 0 / SCHED_NORMALi: 00190, Gilles Chanteperdrix |
| Next by Thread: | Re: [RFC] shadow threads with prio 0 / SCHED_NORMAL: 00190, Jan Kiszka |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |