summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorrstone <rstone@FreeBSD.org>2012-04-26 01:07:03 +0000
committerrstone <rstone@FreeBSD.org>2012-04-26 01:07:03 +0000
commitad032fccda1eefdb6355b59b79560ed68ca81e68 (patch)
treecc38832de860647583832a494b9f77f94b0603aa /lib/libc/stdlib
parentf9995de53f8897f196450d96daee2c822dfad0eb (diff)
downloadFreeBSD-src-ad032fccda1eefdb6355b59b79560ed68ca81e68.zip
FreeBSD-src-ad032fccda1eefdb6355b59b79560ed68ca81e68.tar.gz
Implement the D "cpu" variable, which returns curcpu. I have chosen not
to follow the example of OpenSolaris and its descendants, which implemented cpu as an inline that took a value out of curthread. At certain points in the FreeBSD scheduler curthread->td_oncpu will no longer be valid (in particukar, just before the thread gets descheduled) so instead I have implemented this as its own built-in variable. Sponsored by: Sandvine Inc. MFC after: 1 week
Diffstat (limited to 'lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud