Update of /export/home/ntop/ntop
In directory jabber:/tmp/cvs-serv1904
Modified Files:
hash.c
Log Message:
Minor - but necessary - fixups to the hash 'n-cycle mutex' stuff.
- if ((i+1) & MUTEX_FHS_MASK == 0) {
vs.
+ if (((i+1) & MUTEX_FHS_MASK) == 0) {
and, I can improve the ending test - this shouldn't be needed unless, somehow,
the # of sessions isn't a power of two. But it doesn't hurt as a belt &
suspenders change:
- if (i & MUTEX_FHS_MASK != 0) {
vs.
+ if ( ((i & MUTEX_FHS_MASK) != 0) || (myGlobals.tcpSessionsMutex.isLocked) ) {
Note that I put some extra heartbeat lines wrapping the call(s) to the purge
routines -- as HEARTBEAT(1 (level 1) calls.
-----Burton (ref 179)
Did I mention that I hate languages with explicit operator evaluation orders?
Did I also mention that this still doesn't fix the deadlock problem?
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev