On Sun, Oct 18, 2009 at 7:12 PM, François Revol <revol@xxxxxxx> wrote: > Hi, > > > I have put together a small patch to get aid in the compilation of > > gcj. The > > changes are small and hopefully useful for Haiku. I attached the > > diff to > > http://dev.haiku-os.org/attachment/ticket/4696/ > > Hmm you don't want to use gzip at least on small patches like this, it > forbids trac to display it inline and forces you to download to see... > > I will remember that next time. > > > > Let me know how I can improve this patch. > > Hmm... > > + case SCHED_FIFO: > + case SCHED_RR: > + case SCHED_OTHER: > + return B_LOW_PRIORITY; > > > Actually, FIFO and RR are real-time classes, they should only get the > > = 100 prios IMO, and OTHER should get only <100. > Since the BeAPI priority is a single namespace and differentiate only > by the value ranges... > > I created a test on OS X and it seems they return the same values for all policies. That is what I imitated. I could run on Linux to see if they have the same results. > Other than that it looks simple enough. > > François. > >