[rrd-users] trying to give up on librrd_th
Greetings, After much pain and suffering I have decided to give up on the multithreading business. I was getting usless answers out of rrd_update_r() so I gave up. The first time that I called it it returned 0 which, i suppose, indicates success. Anytime after that that I called it (changing only the value of the numbers I was trying to insert and the time of course) it would return -1 which I take to mean failure. The problem is that the rrd_get_error() routine does not return anything in this case. I can put obvious errors into my arguments to rrd_update_r() and get the correct answer from rrd_get_error() but I get nothing when I try to use it for real. My current plans are to pull all of the rrd calls into one thread and use the non-multithreaded routines in that thread to update the databases. Does anybody know if there is any reason why this would not work? I.e. calls to routines in the rrd_update() routine that are not reentrant such that another thread may walk on it. ANY help would be appreciated. == --Stephen Hall ma_bellnet: (512)835-3074 Sr. Operating Systems Specialistinternet: [EMAIL PROTECTED] When I die I want to go peacefully. Like my grandfather did, in his sleep. Not screaming like the passengers in his car. Visualize Whirled Peas! -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: help with librrd_th
Stephen Hall writes: Can someone tell me how to call rrd_get_context() and interpret the results. Or better yet, can someone point me to a document that explains how to use the C API (multi-threaded or otherwise)? Since the silence on this topic was deafening I conclude that this stuff is simply not documented at all. I suppose that if it was hard to write it should be even harder to use. Thanks anyway. == --Stephen Hall ma_bellnet: (512)835-3074 Sr. Operating Systems Specialistinternet: [EMAIL PROTECTED] When I die I want to go peacefully. Like my grandfather did, in his sleep. Not screaming like the passengers in his car. Visualize Whirled Peas! -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] help with librrd_th
Greetings, I have searched the archives and have not found this question answered. I am trying to write a multi-threaded C program to update some RRD databases on the fly and the RRDtool-programming-rrdthreads page tells me that I should call rrd_get_context() in each thread. However, since the entire RRD C API seems to be undocumented I do not know how to call this routine (or even what a good or bad return value would be). Can someone tell me how to call rrd_get_context() and interpret the results. Or better yet, can someone point me to a document that explains how to use the C API (multi-threaded or otherwise)? If not, then please tell me how you figured out which routines you needed to call and how they should be called (and how you knew what a good return value was). Thanks! == --Stephen Hall ma_bellnet: (512)835-3074 Sr. Operating Systems Specialistinternet: [EMAIL PROTECTED] When I die I want to go peacefully. Like my grandfather did, in his sleep. Not screaming like the passengers in his car. Visualize Whirled Peas! -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi