From: Caleb Clausen Date: 2010-05-16T10:42:09+09:00 Subject: [ruby-core:30262] Re: [Feature #3176] Thread#priority= should actually do something On 5/15/10, KOSAKI Motohiro wrote: > Hi > >> [[a slick little patch to just use setpriority]] >> >> And that works?!? > > Do you mean my test result is not enough? No, I believe you. (Haven't been able to test it myself yet... networking issues on my development laptop.) It's just that I was astonished that it could be so easy. It's a very nice little patch you made; thanks for doing it. > MacOS X, Solaris, Windows have each different changing way. > There isn't POSIX standard in this area unfortunatelly. > > Plus we already windows one, see > thread_win32.c#native_thread_apply_priority(). > > However, Some OS doesn't have per-thread priority feature at all. So, > I don't think your patch is useless. My intention was, I hoped to clarify > why you don't use setpriority() nor another os feature. your patch > didn't describe it. Ok, good. I think I should merge our patches together.