Hi
and thanks for your attention
I think there is a misunderstanding running over here. and I think I have to explain
well first, sending my mail twice was a mistake because I could not take an Ack of my mail.
I didn't ignore about what luca's said I just thought that he couldn't understatnd my
meaning because I have askes my question in a wrong way. so I explained it and now I see
that I have 2 Ack mail.
as you see I have apriciate luca for answering in the start of my letter I exactly know
the rules of respection to people because I live in a traditional country and culture.
I know that he may thought that I didn't like his answer but honestly I didn't mean it.
oh I think I have to explain the subject of my mail. sorry for this but it means that
I need help and please somebody help me in our culture but now in this time I know that it has bad
meaning in yours. so I am so sorry about it I will send it to the group to prov! e that I
actually didn't want  to break any respection. so once more time I am sorry.
I said that I have a global file pointer so I need mutexes to control writing on it
but I faced with that problem. when luca said that I tested and understand that I have
some concurency problem that I have to correct them.
so I have to say thank you but I had not enough time to say it sooner.(before reading your mail)
and Mr Burton we have a proverb in our culture that means never judge about the people
and let them speak.
have a nice year and cheerfull days.
Best Regards.
                                                   pardis

Burton Strauss <[EMAIL PROTECTED]> wrote:
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 may
be incomplete, inaccurate, even dead wrong. Caveat Emptor! The only "guarantee"
is that free support will be worth what you've paid for it.  It may be worth MORE,
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
     answered.
   * 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 don't
like the answer you received - is a slap in the face of the person who took the
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 it.
...
 
 
-----Burton
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of pardis H
Sent: Saturday, January 07, 2006 4:22 AM
To: ntop ntop
Subject: [Ntop] no bady wanna help?! problem in mutexes

Hi
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 I use
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:
accessMutex(&myGlobals.fmutex,"queue");
but I don't know the reason.
please help me because I really have to know some time in ntop.
thanks for your attention.
Best Regards

Yahoo! DSL Something to write home about. Just $16.99/mo. or less _______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop


Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to