Project

General

Profile

Feature #2512

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

Added by pespin 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
osmo-gsm-tester
Target version:
-
Start date:
09/14/2017
Due date:
% Done:

0%

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.

History

#1 Updated by neels about 2 months ago

+1

Also available in: Atom PDF