[Devel] [ openser-Patches-1714854 ] Generic task execution implementation

SourceForge.net noreply at sourceforge.net
Tue May 8 12:49:03 CEST 2007


Patches item #1714854, was opened at 2007-05-08 10:46
Message generated for change (Comment added) 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: Open
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-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



More information about the Devel mailing list