[AGENT++] A question concerning reentrent.h, reentrent.cpp (snmp++ 3.2.15)
Jochen Katz
katz at agentpp.com
Fri Aug 19 23:31:18 CEST 2005
Hi Thorsten,
> Inside the file reentrant.h the class SnmpSynchronized uses POSIX
> mutexes if the symbol "_THREADS" is defined and if we are not using
> windows.
> Using these classes, I found that the destructor of class
> SnmpSynchronized does not free the POSIX mutex with a call to
> pthread_mutex_destroy.
at least in the current version, pthread_mutex_destroy() is called
> Moreover, after a look inside the Agent++ library (3.5.22), I found
> that POSIX mutexes are only used it the symbol POSIX_THREADS is
> defined, not necessarily if only the symbol _THREADS is defined. Is
> this ok?
config_snmp_pp.h defines this:
#ifdef __unix
#define POSIX_THREADS
#endif
Maybe Frank can tell us why this define is used...
Regards,
Jochen
More information about the AGENTPP
mailing list