summaryrefslogtreecommitdiff
path: root/scripts/internal/clinter.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-02-18 01:43:16 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2020-02-18 01:43:16 +0100
commitc9fc4fdadc5a19d97916cbf13b1b479834b94bd8 (patch)
treefa874c23d1ed93ec6022c6a88acaa2fbb98e3f79 /scripts/internal/clinter.py
parent793148fee9c46c3df8b7ca941d6c73d5c61bc3a8 (diff)
downloadpsutil-c9fc4fdadc5a19d97916cbf13b1b479834b94bd8.tar.gz
revert #1667 process_iter() new_only param
On a second thought I realized that process_iter() uses a global variable, so it's not thread safe. That means that if the are 2 threads using it, the first thread one calling the function (+ consume the iterator), will "steal" the processes of the second thread. psutil.cpu_percent() has the same problem. That means we have a problem can't solve with the current API and requires a lot of thinking on how to solve it as it's not obvious.
Diffstat (limited to 'scripts/internal/clinter.py')
0 files changed, 0 insertions, 0 deletions