> 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?
The same type of mutex is used in other worker threads that is correct. I am initializing the mutex in the main thread in my global object. Download of Image to hardware When a set request is received by the agent to download an image to hardware a function call is made to download. Within this download function I have the mutex to lock to prevent multiple requests to download and then I spawn a thread that downloads the image to the hardware device. Once complete the lock is disabled. The thread resources are removed once the thread exits. Thanks, Garyc ----- Original Message ----- From: "Robert Story (Users)" <[EMAIL PROTECTED]> To: "Gary Clark" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 27, 2004 1:28 PM Subject: Re: Sending traps in another thread > 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> >> 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? > > 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 ------------------------------------------------------- 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