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)
- serde example fails to compile HOT 4
- 32bit debug builds panic (misaligned pointer dereference:) HOT 9
- How to compile?
- Build fails because of ntapi HOT 1
- UB creating a reference with an under-aligned address HOT 3
- Heap corruption on Windows starting with `0.29.5` HOT 6
- Add more options to configure which data should be collected HOT 4
- Repository contains Cargo.lock file HOT 3
- Process SWAP usage is 1000x of what it should be. HOT 4
- Add support for GPU HOT 6
- Mac M1 reports 0 available memory since 0.29 HOT 5
- [Feature Request] Better Group Support HOT 1
- Replace `cfg(windows)` with `cfg(target_os = "windows")` HOT 2
- Move unix-like targets into a unix sub-folder to have better folder hierarchy
- 'attempt to subtract with overflow' HOT 3
- Implement clone trait for Disk, Cpu, etc. HOT 2
- `Disk::refresh(&self)` does not update available space on MacOS Ventura HOT 3
- Flagged as Trojan with Windows Defender HOT 2
- 运行 let sys = System::new_all(); 导致 panic HOT 4
- `DiskExt` examples use `System::new` HOT 1
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.