]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a pre-emption counter, td_generation, so that threads can notice
authorbms <bms@FreeBSD.org>
Sun, 5 Oct 2003 09:35:08 +0000 (09:35 +0000)
committerbms <bms@FreeBSD.org>
Sun, 5 Oct 2003 09:35:08 +0000 (09:35 +0000)
commit0f917818e614fa0b71f349f7d3ad6c9d380a6b60
tree54df3c14c0f7c16559cf3ca703ec4763d3e92270
parent1ba528a1212ca89a46e25c11f0ef557ce923a4d5
Add a pre-emption counter, td_generation, so that threads can notice
when they have been pre-empted by other threads. This is bumped from
within mi_switch() every time a context switch takes place.

Discussed with: pete
sys/kern/kern_synch.c
sys/sys/proc.h