[openbeos] Re: get_next_thread_info() bug ??

En réponse à François Revol <revol@xxxxxxx>:

> 
> while updating my renice command (so that -f searched for all thread by
> names,
> not only the first that matches), I tried to use 0 as the team_id in 
> get_next_thread_info(), as described in the BeBook, and to my surprise
> it 
> returns 0x80000005: Invalid argument. I even rebooted just in case I
> had
> screwed up the kernel (I tried -1 before)... I tried 2 as team_id and it
> lists
> the right threads, so I assume they forgot this special case.
> Maybe it only happens in BONE ?
> Weird...
> 
> François.
> 

OMG, forget it, /me needs sleep...
0 means the calling thread :D
ok, now at least renice -f works as expected.
Will put it in the CVS sometime.

François.




Other related posts: