[sr-dev] git:master: async: new module for asynchronous config operations

Daniel-Constantin Mierla miconda at gmail.com
Sun Jun 26 11:52:40 CEST 2011


Module: sip-router
Branch: master
Commit: 58796a4ea5615e4015833d08b979b3cd99b7b5a5
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=58796a4ea5615e4015833d08b979b3cd99b7b5a5

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sun Jun 26 00:43:57 2011 +0200

async: new module for asynchronous config operations

- exports async_sleep(seconds) - sleep asynchronously and continue the
  exection after the seconds interval has passed
- it uses t_suspend()/t_continue()
- config execution state is lost, so a return at the same level with
  async_sleep() will exit the config execution

---

 modules/async/Makefile      |   12 +++
 modules/async/async_mod.c   |  171 +++++++++++++++++++++++++++++++++++++++
 modules/async/async_sleep.c |  187 +++++++++++++++++++++++++++++++++++++++++++
 modules/async/async_sleep.h |   49 +++++++++++
 4 files changed, 419 insertions(+), 0 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=58796a4ea5615e4015833d08b979b3cd99b7b5a5



More information about the sr-dev mailing list