diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-02-18 01:43:16 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-02-18 01:43:16 +0100 |
commit | c9fc4fdadc5a19d97916cbf13b1b479834b94bd8 (patch) | |
tree | fa874c23d1ed93ec6022c6a88acaa2fbb98e3f79 /scripts/internal/clinter.py | |
parent | 793148fee9c46c3df8b7ca941d6c73d5c61bc3a8 (diff) | |
download | psutil-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