hyperic / sigar

System Information Gatherer And Reporter
http://sigar.hyperic.com/
Apache License 2.0
1.51k stars 504 forks source link

Is sigar library thread-save? #117

Open ghost opened 6 years ago

ghost commented 6 years ago

Hello, is it safe to have shared resource

sigar_t *sigar_handle;
int status = sigar_open(&sigar_handle);

which will be used between threads without blocking? Or should I open own sigar handle for each thread? Or maybe it is better to have one handle with locking mechanism? Thank you in advance for helping!