-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Again: are you sure you call accessMutex after createMutex?
Luca
pardis H wrote:
> hi
> thanks for your attention
> I did exactly as follows:
> globals_structtypes.h:
> FILE * f;
> struct ntopGlobals
> {
> .....
> ......
> PthreadMutex fmutex;
> .....
> .....
> }
> initialize.c
> void initMutex
> {
> ......
> ......
> createMutex(&myGlobals.fmutex);
> ....
> ....
> }
> pbuf.c
> void queuePacket
> {
> accessMutex(&myGlobals.fmutex,"queuePacket");
> /* some work on file */
> releaseMutex(&myGlobals.fmutex);
> }
> but I see that it says that the mutex is not initialized
> please help me I am really in deadlock.
> Best Regards.
>
> */Luca Deri <[EMAIL PROTECTED]>/* wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----*Hash: SHA1
>
> Hi,
> are you sure you call accessMutex after createMutex?
>
> Luca
>
> pardis H wrote:
> > 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
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (Darwin)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFDv6C6mMhDxnkh3zQRAnDVAJsF3KgFKtqz+6Q3ydlhhpNOtJteZACeP5jC
> mBlJxudDqam4zrvk8/X/is8=
> =GxtD
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
> *
>
> * *
> *
> *
> * *
> ------------------------------------------------------------------------
> *Yahoo! Photos
> Ring in the New Year with Photo Calendars
> <http://us.rd.yahoo.com/mail_us/taglines/photos/*http://pa.yahoo.com/*http://us.rd.yahoo.com/mail_us/taglines/photos/evt=38087/*http://pg.photos.yahoo.com/ph//page?.file=calendar_splash.html&.dir=>.
> Add photos, events, holidays, whatever. *
>
> *
> *
> ------------------------------------------------------------------------
> *
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
> *
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDv8NMmMhDxnkh3zQRAu0YAKCTWg2ox9A1bJR3bnJbj9L75OiYWQCfSgp4
BwYF7IplvBYG1vpnqpyLqX0=
=Muxr
-----END PGP SIGNATURE-----
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop