diff options
author | kib <kib@FreeBSD.org> | 2014-12-08 16:27:43 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-12-08 16:27:43 +0000 |
commit | 6ad3754659359384a6f7030c01d6028cfb5b3566 (patch) | |
tree | a4f602720dceed3701d711911e0dbe3afa187145 /contrib/llvm/lib/Transforms/Utils/IntegerDivision.cpp | |
parent | 042604e2ce8f6158efea05cb62c32a8b8310060f (diff) | |
download | FreeBSD-src-6ad3754659359384a6f7030c01d6028cfb5b3566.zip FreeBSD-src-6ad3754659359384a6f7030c01d6028cfb5b3566.tar.gz |
Do some refactoring and minor cleanups of the thread_single() code in
preparation for the global stop commit.
Move the code to weed suspended or sleeping threads into the
appropriate state, into the helper weed_inhib(). Current code already
has deep nesting and hard to follow [1].
Add currently useless helper remain_for_mode(), which returns the
count of threads which are allowed to run, according to the
single-threading mode.
In thread_single_end(), do not save curthread into local variable, it
is unused after, except to find curproc.
Remove stray empty line.
Requested by: avg [1]
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'contrib/llvm/lib/Transforms/Utils/IntegerDivision.cpp')
0 files changed, 0 insertions, 0 deletions