[Ntop] no bady wanna help?! problem in mutexes
Burton at ntopSupport.com
Sat Jan 7 16:41:57 CET 2006
Move code level discussions to ntop-dev please ... few people care about
this, especially if you are going to ignore Luca's comments, send the same ?
two minutes apart, etc.
(1) Why in Ghu's name are you using a MUTEX to measure time? Mutexes are
for control of shared resources.
(2) Follow the code for the mutexes we already use and you will see that
they need to be recreated after the fork() call.
(3) If you are trying to use the extra timing logic we've built into ntop's
mutexes, you need to use the ntop calls. Look in util.c
(4) Make sure you are initializing the mutex AFTER we wipe the ntop globals.
Read the stuff in docs/FAQ on the mailing lists...
Despite any individual's frequent postings, nobody is "responsible" for
answering your question. It's all on a "best efforts" basis. Our responses
be incomplete, inaccurate, even dead wrong. Caveat Emptor! The only
is that free support will be worth what you've paid for it. It may be worth
it won't be worth LESS.
Just because you post a question does NOT mean that you are OWED an answer.
If nobody answers, then maybe it's because:
* Nobody knows.
* People are busy.
* You've asked the same question multiple times and it's already been
* You have been asked for additional information and are unable/unwilling
to supply it.
or, well, any one of a dozen other reasons.
Asking the same question multiple times - or asking it again because you
like the answer you received - is a slap in the face of the person who took
time to answer you in the first place and will more than likely not get a
different response. If you're not sure that your message posted, check the
archives to see if your message is there -- please don't just keep reposting
From: ntop-bounces at unipi.it [mailto:ntop-bounces at unipi.it] On Behalf Of
Sent: Saturday, January 07, 2006 4:22 AM
To: ntop ntop
Subject: [Ntop] no bady wanna help?! problem in mutexes
I have a big problem in measuring the time of thread's running time.
I want to log some times in a file so I defined the pointer of this file
in globals_structuretypes.h and defined a mutex for it in ntop Global
then I added a line createMutex in initialize.c in initmutex and then before
the file I use
accessMutex and after using it I use releaseMutex but I have problem
inrunning and I face with
this error that tells me the mutex is UNINITIALIZED so what any thing else I
have to do to correct it
I used for example:
but I don't know the reason.
please help me because I really have to know some time in ntop.
thanks for your attention.
om/broadband/> DSL Something to write home about. Just $16.99/mo. or less
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ntop