Date: Thu, 25 Jul 2002 13:20:29 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: John Baldwin <jhb@FreeBSD.org> Cc: Julian Elischer <julian@FreeBSD.org>, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/i386/i386 trap.c src/sys/kern kern_threa Message-ID: <Pine.BSF.4.21.0207251318570.10500-100000@InterJet.elischer.org> In-Reply-To: <XFMail.20020725125502.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
the value is only set to our thread pointer if We set it.. if any other thread touches it it will still not resolve to equality. whether we win or lose the race, the test for equality with our thread pointer will still not evaluate to true. On Thu, 25 Jul 2002, John Baldwin wrote: > > On 24-Jul-2002 Julian Elischer wrote: > > julian 2002/07/24 16:21:05 PDT > > > > Modified files: > > sys/i386/i386 trap.c > > sys/kern kern_thread.c > > Log: > > Add some locking asserts and some comments > > Why is it safe to read a stale value? > > -- > > John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0207251318570.10500-100000>