[sr-dev] git:master:ce710ce1: async: added support for millisecond resolution sleep

Henning Westerholt henningw at users.noreply.github.com
Sun Jul 28 16:28:40 CEST 2019


Module: kamailio
Branch: master
Commit: ce710ce13a622c3c62334f2ee045b1983d3122f2
URL: https://github.com/kamailio/kamailio/commit/ce710ce13a622c3c62334f2ee045b1983d3122f2

Author: Paweł Pierścionek <ppierscionek at gmail.com>
Committer: Henning Westerholt <henningw at users.noreply.github.com>
Date: 2019-07-28T16:28:35+02:00

async: added support for millisecond resolution sleep

- new ms_timer parameter to enable millisecond precision timer
- new async_ms_route and async_ms_sleep functions with milliseconds as a param
- implementation:
  Each async_ms_sleep adds an entry to a linked list sorted by expiry time.
  List is checked every ms_timer ms for expired entries.
  All expired entries are pushed for execution on a pool of async workers.

---

Modified: src/modules/async/async_mod.c
Modified: src/modules/async/async_sleep.c
Modified: src/modules/async/async_sleep.h
Modified: src/modules/async/doc/async_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/ce710ce13a622c3c62334f2ee045b1983d3122f2.diff
Patch: https://github.com/kamailio/kamailio/commit/ce710ce13a622c3c62334f2ee045b1983d3122f2.patch




More information about the sr-dev mailing list