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 Specialist internet: [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]
Help mailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi