Patches item #1714854, was opened at 2007-05-08 10:46 Message generated for change (Settings changed) made by henningw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1714854&group_id=139143
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Henning Westerholt (henningw) Assigned to: Nobody/Anonymous (nobody) Summary: Generic task execution implementation Initial Comment: Hello, the attached patch adds a generic task execution implementation to the core. This is useful for monitoring purposes, e.g. in database modules to see if the db is still present. You can register any function and an execution interval. This code (with a little bit different naming) has been in productions almost a year. Furthermore it can be deactivated with one simple #ifdef. I attached also a small demo module, that shows the usage of this facility. Its simple creates and register a task that output a log message every 10 seconds. I think this is a useful additions to OpenSER. The benefit of this approach is the isolation against the normal timer subsystem. Some task thats get executed of this implementation can need quite a lot of time, e.g. imagine restarting a hanged database process. Blocking e.g. the transaction timers for several seconds is not a good thing on a busy server. A further benefit is the relative simple behaviour and implementation, this code is only app. 300 lines over all, this is much more easy for handling and debugging. ---------------------------------------------------------------------- >Comment By: Henning Westerholt (henningw) Date: 2007-09-10 08:46 Message: Logged In: YES user_id=337916 Originator: YES Now obselete because of the recent timer process improvements. ---------------------------------------------------------------------- Comment By: Henning Westerholt (henningw) Date: 2007-05-08 10:49 Message: Logged In: YES user_id=337916 Originator: YES File Added: watch_proc-test-module.patch ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1714854&group_id=139143 _______________________________________________ Devel mailing list Devel@openser.org http://openser.org/cgi-bin/mailman/listinfo/devel