Re: threadsafe problems

Steve Shipway <[email protected]>
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <28E447343A85354483BCF7C3E9D5EAA514A7EB1F@uxcn10-1.UoA.auckland.ac.nz>
> I try to use librrd in a multithreaded application, and it seems like
> most/all functions at not thread-safe due to getopt().

Which versions are you using, and which library functions are you calling?  There are the rrd_*_r threadsafe functions and the other rrd_* ones (which are not threadsafe).  Also the rrdc_* function are (I think) threadsafe. 

Since you are always using the caching daemon, maybe you can call rrdc_flush or rrdc_flushall which would be threadsafe?

Steve

Steve Shipway
ITS Unix Services Design Lead
University of Auckland, New Zealand
Floor 1, 58 Symonds Street, Auckland
Phone: +64 (0)9 3737599 ext 86487
DDI: +64 (0)9 924 6487
Mobile: +64 (0)21 753 189
Email: [email protected]
 Please consider the environment before printing this e-mail 


_______________________________________________
rrd-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.