From: Rajan R. <ra...@us...> - 2002-03-05 16:43:39
|
Yes, pid's are guaranteed to be unique. Here the problem we focused is the time taken in finding the next available free pid. I really don't mean by your task->xxx. -Rajan Hubertus Franke <fr...@wa...> writes: > @@ -153,13 +155,18 @@ > if(last_pid & 0xffff8000) > last_pid = 300; > next_safe = PID_MAX; > + goto repeat; > } > - goto repeat; > + if(unlikely(last_pid == beginpid)) > + goto nomorepids; > + continue; It isn't guaranteed that pid is unique. In the case: task->pid = 300, task->xxx = 301 pid 301 is free This get_pid() returns 301. Regards. -- OGAWA Hirofumi <hir...@ma...> _______________________________________________ Lse-tech mailing list Lse...@li... https://lists.sourceforge.net/lists/listinfo/lse-tech |