Hi, RS> the get_first_data_point function is a good indication that a RS> get is starting. RS> You could block there till the data update finishes.
Excellent thanks. That will be fine while waiting for the data to be updated. However once get_first/get_next has finished, the table_handler is called to return the data. Should I copy the required row of data found in get_first/get_next (into my_data_context?) so that when the table_handler is called it is guaranteed to be still pointing to the data (i.e. I won't have updated/deleted the row data in-between the end of 'xxx_get_next' and the start of 'xxx_table_handler') - or have I missunderstood something? Thanks Graeme. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Robert Story > Sent: 20 September 2006 15:05 > To: Graeme Wilson > Cc: [email protected] > Subject: Re: Table iterator - data protection > > On Wed, 20 Sep 2006 13:41:07 +0100 Graeme wrote: > GW> I've used 'mib2c -c mib2c.iterate.conf' to generate some template > GW> code for my table. > GW> My data is not held by the agent its self - which was my > reasoning > GW> for using the iterate config. > GW> > GW> The code all works fine, however, I need to protect the data to > GW> prevent the agent performing reads on it (iterating over > it) at the > GW> same time as the data is being updated externally. Is there some > GW> way to know when a get starts/ends so that I can protect my data. > > the get_first_data_point function is a good indication that a > get is starting. > You could block there till the data update finishes. > > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to > share your opinions on IT & business topics through brief > surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > _______________________________________________ > Net-snmp-coders mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
