Are neb_register_callback()s threadsafe?

Andreas Ericsson ae at op5.se
Wed Sep 5 13:38:49 CEST 2012


On 09/05/2012 01:20 PM, Razvan Cojocaru wrote:
> Hello,
> 
> is it safe to assume that the functions registered with
> neb_register_callback() will be called in a threadsafe manner,

That depends on what you mean by "threadsafe". If you intend to use
multiple threads in your own module, you'll have to take care not to
do anything that upsets Nagios.

If you mean "will multiple Nagios threads try to rip my data out from
under my feet?", then no, but other modules might.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list