|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH v3 08/12] lib/uksched: Set scheduler reference in scheduler implementation
Hi Costin,I wonder whether for this functionality, it would make more sense to just change sched<whateverimplementation>_thread_add to return an int as a success/error code and then let uk_sched_thread_add react to that? I see two advantages: One, it lets the scheduler framework deal with the fallout from the errors of the implementation and thus reduce potential code duplication: it could then destroy and clean up the thread. Or it could even try out a second implementation if we have some crazy multi-scheduler setups! Two, it would mean that someone writing a concrete scheduler implementation doesn't have to remember to set t->sched, but only deal with the more standard "0 on success, -1 on error" return logic. Cheers, Florian On 3/10/19 9:10 PM, Costin Lupu wrote:
-- Dr. Florian Schmidt フローリアン・シュミット Research Scientist, Systems and Machine Learning Group NEC Laboratories Europe Kurfürsten-Anlage 36, D-69115 Heidelberg Tel. +49 (0)6221 4342-265 Fax: +49 (0)6221 4342-155 e-mail: florian.schmidt@xxxxxxxxx ============================================================ Registered at Amtsgericht Mannheim, Germany, HRB728558 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |