[AGENT++] [PATCH] agent++: locking fixes and improvements

dominik.vogt at external.thalesgroup.com dominik.vogt at external.thalesgroup.com
Tue Aug 17 13:06:26 CEST 2010


Attached to this message you can find several patches improving
the locking in mib.cpp.

* 0001

  This fixes a race condition or crash caused by unlocking the mib
  in the wrong place (there are three nested loops; the lock is
  managed in the second loop, but the particular unlock takes
  place right before the inner loop is restarted).

* 0002

  Slightly reduces locking overhead by minimizing the scope of the
  mib lock.

* 0003

  Moves the implementation of lock_mib() and unlock() mib to mib.h
  to remove the penalty for calling an extra function.

* 0004

  Removes now unnecessary "#ifdef _THREADS" from several calls to
  lock_mib() and unlock_mib().

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
-------------- next part --------------



More information about the AGENTPP mailing list