summaryrefslogtreecommitdiff
path: root/src/freebsd
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-06-05 15:55:29 +0100
committerRichard Hughes <richard@hughsie.com>2010-06-05 15:55:29 +0100
commit82a6a882d03c145625edbe23dade65bc14f85e73 (patch)
treeaa4585bd7d72bb45bc83528933ff8e624c5877f0 /src/freebsd
parent2aba7d4cfbad7f04934be455317ddfd64689e3c1 (diff)
downloadupower-82a6a882d03c145625edbe23dade65bc14f85e73.tar.gz
Assign names to our idle sources when using new versions of glib2
This makes it possible to profile more accurately using systemtap
Diffstat (limited to 'src/freebsd')
-rw-r--r--src/freebsd/up-backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/freebsd/up-backend.c b/src/freebsd/up-backend.c
index e70c34b..4f5e918 100644
--- a/src/freebsd/up-backend.c
+++ b/src/freebsd/up-backend.c
@@ -293,6 +293,9 @@ up_backend_coldplug (UpBackend *backend, UpDaemon *daemon)
g_timeout_add_seconds (UP_BACKEND_REFRESH_TIMEOUT,
(GSourceFunc) up_backend_refresh_devices,
backend);
+#if GLIB_CHECK_VERSION(2,25,8)
+ g_source_set_name_by_id (backend->priv->poll_timer_id, "[FreeBSD:UpBackend] poll");
+#endif
return TRUE;
}