Hi, I am creating a new output plugin. I am using message batching and multiple worker queue instances. I have a question on how rsyslog handles multi-threading.
Question: will rsyslog design make sure the 'BeginTransaction/DoAction n times/EndTransaction' is thread safe? so that for each worker instance, doAction, beginTransaction, endTransaction will never be called at the same time? Thanks. The following is the related doc. I am not sure what the 'entry point' means, is it at function level, or at beginTransaction/doAction/EndTransaction level? From this link: http://www.rsyslog.com/doc/master/development/dev_oplugins.html, about threading: However, a plugin’s entry points are guaranteed to be never called concurrently *for the same action*. That means your plugin must be able to be called concurrently by two or more threads, but you can be sure that for the same instance no concurrent calls happen. _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

