summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/remque.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2007-06-05 00:16:43 +0000
committerjeff <jeff@FreeBSD.org>2007-06-05 00:16:43 +0000
commitf042fda7ca24340082a6234f26b99a67d86f9650 (patch)
treea501b57bc4254612654999e3ef249bfe1a41cce1 /lib/libc/stdlib/remque.c
parentebaff183844e51dd5e376e11a3e5b1e9ededca7c (diff)
downloadFreeBSD-src-f042fda7ca24340082a6234f26b99a67d86f9650.zip
FreeBSD-src-f042fda7ca24340082a6234f26b99a67d86f9650.tar.gz
- Add a new argument to cpu_switch. This is a pointer to a mutex that
oldthread should point at before we return. - When cpu_switch() is called the td_lock pointer in the old thread may point at the blocked lock. This prevents other processors from switching into this thread while we're still switching out. Wait until we're done deactivating the vmspace before we release the thread by assigning to td_lock. - Before we can activate the new vmspace we must make sure that the new thread is not assigned to the blocked lock. It may be in the process of switching out on another cpu. Spin until the new thread is available.
Diffstat (limited to 'lib/libc/stdlib/remque.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud