On Wed, 27 Oct 2004 12:24:17 -0500 Gary wrote: GC> > GC> > Have you implemented any locking mechanism? GC> > GC> GC> > GC> Standard pthread mutexs were used. GC> > GC> > Can you elaborate on that? Where are they used? Who blocks who, and when? GC> GC> The download to the hardware device or upload can take time and didnt want GC> another request to be handled GC> so I use: GC> GC> pthread_mutex_lock(&operationMutex) GC> Download data to hardware device GC> Send trap GC> pthread_mutex_unlock(&operatonMutex)
I assume that the same mutex used in the main agent thread and the other worker thread? Where is the mutex set-up/locked in the agent? -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users