Project

General

Profile

Actions

Feature #2512

closed

osmo-gsm-tester: Convert event_loop.wait to support passive polling

Added by pespin over 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/14/2017
Due date:
% Done:

100%

Spec Reference:

Description

Right now, all polling in osmo-gsm-tester is done by sleeping small amounts of times (like 0.1 seconds), then calling poll function everywhere. Some of those poll functions are actually event-based (like glib main loop, or any fd/socket being used) and can be monitored with select() instead of using active polling. This way we avoid wasting resources and we avoid delaying signal-driven events.

For objects not supporting passive polling, we should provide an API to create a timer object (man timerd_create ?) and just call select() on those.


Related issues

Related to OsmoGSMTester - Feature #3234: osmo-gsm-tester: poll the python-smpplib socket using non-busy approachNewpespin05/04/2018

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)