diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-09-19 08:57:53 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-09-19 08:57:53 +0100 |
commit | e5fbdbe605b0acc74e259a1618e2fe2304becade (patch) | |
tree | cea9c3ee22cf663b2f778ef977d15fb581afa008 /agent/discovery.c | |
parent | b80bc3a17fd78f8b665509cb193e876b2d16497c (diff) | |
download | libnice-e5fbdbe605b0acc74e259a1618e2fe2304becade.tar.gz |
agent: Add names to timer GSources
Modify the agent_timeout_add_with_context() utility function to
automatically add names to the timer GSources it creates. This makes
them a little easier to identify when debugging.
Diffstat (limited to 'agent/discovery.c')
-rw-r--r-- | agent/discovery.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/discovery.c b/agent/discovery.c index b055807..c5d9220 100644 --- a/agent/discovery.c +++ b/agent/discovery.c @@ -1169,7 +1169,10 @@ void discovery_schedule (NiceAgent *agent) /* step: run first iteration immediately */ gboolean res = priv_discovery_tick_unlocked (agent); if (res == TRUE) { - agent->discovery_timer_source = agent_timeout_add_with_context (agent, agent->timer_ta, priv_discovery_tick, agent); + agent->discovery_timer_source = + agent_timeout_add_with_context (agent, + "Candidate discovery tick", agent->timer_ta, + priv_discovery_tick, agent); } } } |