Comments (4)
I opened an issue about it if you want to follow the evolution: #149.
from sysinfo.
It's part of the problem, yes. However, Process
cannot be used safely between threads. I'll make another check for linux but I think it shouldn't be Send+Sync
either. I need it internally so I can perform faster computations but that's it.
To fix your issue, you'll have to wrap it inside a Mutex
I guess. I'll certainly modify the internal code so that Process
doesn't implement Send+Sync
anymore.
Sorry for the confusion!
from sysinfo.
Ahh okay. Good to know :) Thanks for the fast answer!
Yeah, then we will adapt our code accordingly.
from sysinfo.
@bkchr: I think you were right: implementing Send
and Sync
traits seem like a better solution so let's go for it. I'll send the PR in the next hours.
from sysinfo.
Related Issues (20)
- `test_refresh_memory` fails on macOS HOT 1
- Global cpu usage is occasionally smaller than the sum of all process CPU usage HOT 2
- Get HW ID for each Disk HOT 3
- No temperature output for Mac M3 Pro HOT 4
- Incorrect CPU arch HOT 1
- Refreshing multiple processes on macos leads to invalid cpu usage HOT 3
- Add more hardware info: PCI devices, graphics adapters, CPU instruction sets HOT 1
- missing info from cmd of a process HOT 9
- cgroup free and available memory HOT 2
- Global CPU usage is incorrect on Mac M3 Pro HOT 2
- Process parent is `None` if the target process of `refresh_process_specifics()` is a WoW64 process HOT 1
- global cpu info HOT 3
- Add OpenBSD support HOT 3
- Typo in documentation of `Networks::new_with_refreshed_list()`
- International Money Transfer to Ghana: Key Developments and Benefits
- Does system::processes_by_exact_name() return all threads on Linux? HOT 1
- Windows Defender Detects Windows Executable Using this Crate as Trojan HOT 4
- `processes()` return many non-existent processes HOT 12
- Processes started after program using `sysinfo` aren't added to processes list, sometimes HOT 17
- Add some way to remove a closed process HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysinfo.