Re: [TEST/REVIEW/PERF] kern_thread.c tid allocation patch

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Thu, 17 Mar 2005 10:40:52 +0100
In message <42394F22.9060100_at_freebsd.org>, David Xu writes:
>Thread ID should start from (PID_MAX + 1).

Then change:
	        tid_unrhdr = new_unrhdr(0, INT_MAX, &tid_lock);

to
	        tid_unrhdr = new_unrhdr(PID_MAX + 1, INT_MAX, &tid_lock);


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Thu Mar 17 2005 - 08:40:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:30 UTC