banshee r4958 - in trunk/banshee: . src/Core/Banshee.Core/Banshee.Kernel src/Core/Banshee.Services/Banshee.Base src/Core/Banshee.Services/Banshee.Database src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod src/Extensions/Banshee.Daap/Banshee.Daap src/Extensions/Banshee.Daap/Daap src/Libraries/Migo/Migo.TaskCore
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4958 - in trunk/banshee: . src/Core/Banshee.Core/Banshee.Kernel src/Core/Banshee.Services/Banshee.Base src/Core/Banshee.Services/Banshee.Database src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod src/Extensions/Banshee.Daap/Banshee.Daap src/Extensions/Banshee.Daap/Daap src/Libraries/Migo/Migo.TaskCore
- Date: Mon, 26 Jan 2009 01:41:24 +0000 (UTC)
Author: gburt
Date: Mon Jan 26 01:41:24 2009
New Revision: 4958
URL: http://svn.gnome.org/viewvc/banshee?rev=4958&view=rev
Log:
2009-01-25 Gabriel Burt <gabriel burt gmail com>
* src/Extensions/Banshee.Daap/Daap/Client.cs:
* src/Extensions/Banshee.Daap/Banshee.Daap/DaapProxyWebServer.cs:
* src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs:
* src/Core/Banshee.Services/Banshee.Base/ThreadAssist.cs:
* src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs:
* src/Core/Banshee.Core/Banshee.Kernel/Scheduler.cs:
* src/Libraries/Migo/Migo.TaskCore/TaskGroup.cs: Name threads so
kill -s QUIT thread dumps are easier to grok.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Core/Banshee.Kernel/Scheduler.cs
trunk/banshee/src/Core/Banshee.Services/Banshee.Base/ThreadAssist.cs
trunk/banshee/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs
trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs
trunk/banshee/src/Extensions/Banshee.Daap/Banshee.Daap/DaapProxyWebServer.cs
trunk/banshee/src/Extensions/Banshee.Daap/Daap/Client.cs
trunk/banshee/src/Libraries/Migo/Migo.TaskCore/TaskGroup.cs
Modified: trunk/banshee/src/Core/Banshee.Core/Banshee.Kernel/Scheduler.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Core/Banshee.Kernel/Scheduler.cs (original)
+++ trunk/banshee/src/Core/Banshee.Core/Banshee.Kernel/Scheduler.cs Mon Jan 26 01:41:24 2009
@@ -197,6 +197,7 @@
return;
} else if(job_thread == null) {
job_thread = new Thread(new ThreadStart(ProcessJobThread));
+ job_thread.Name = "Banshee.Kernel Job Thread";
job_thread.Priority = ThreadPriority.BelowNormal;
job_thread.IsBackground = true;
job_thread.Start();
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Base/ThreadAssist.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Base/ThreadAssist.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Base/ThreadAssist.cs Mon Jan 26 01:41:24 2009
@@ -34,10 +34,15 @@
public static class ThreadAssist
{
private static Thread main_thread;
+
+ public static Thread MainThread {
+ get { return main_thread; }
+ }
public static void InitializeMainThread ()
{
main_thread = Thread.CurrentThread;
+ main_thread.Name = "Main Thread";
}
public static bool InMainThread {
@@ -85,6 +90,7 @@
public static Thread Spawn (ThreadStart threadedMethod, bool autoStart)
{
Thread thread = new Thread (threadedMethod);
+ thread.Name = String.Format ("Spawned: {0}", threadedMethod);
thread.IsBackground = true;
if (autoStart) {
thread.Start ();
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs Mon Jan 26 01:41:24 2009
@@ -227,6 +227,7 @@
Catalog.GetString ("Please wait while your old Banshee database is migrated to the new format."));
Thread thread = new Thread (MigrateFromLegacyBanshee);
+ thread.Name = "Database Migrator";
thread.Start ();
while (thread.IsAlive) {
Modified: trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs
==============================================================================
--- trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs (original)
+++ trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs Mon Jan 26 01:41:24 2009
@@ -512,6 +512,7 @@
sync_thread_wait = new AutoResetEvent (true);
sync_thread = new Thread (new ThreadStart (PerformSyncThread));
+ sync_thread.Name = "iPod Sync Thread";
sync_thread.IsBackground = false;
sync_thread.Priority = ThreadPriority.Lowest;
sync_thread.Start ();
Modified: trunk/banshee/src/Extensions/Banshee.Daap/Banshee.Daap/DaapProxyWebServer.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Daap/Banshee.Daap/DaapProxyWebServer.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.Daap/Banshee.Daap/DaapProxyWebServer.cs Mon Jan 26 01:41:24 2009
@@ -68,6 +68,7 @@
running = true;
Thread thread = new Thread(ServerLoop);
+ thread.Name = "DAAP Proxy";
thread.IsBackground = true;
thread.Start();
}
Modified: trunk/banshee/src/Extensions/Banshee.Daap/Daap/Client.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Daap/Daap/Client.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.Daap/Daap/Client.cs Mon Jan 26 01:41:24 2009
@@ -132,6 +132,7 @@
if (serverInfo.SupportsUpdate) {
updateRunning = true;
Thread thread = new Thread (UpdateLoop);
+ thread.Name = "DAAP";
thread.IsBackground = true;
thread.Start ();
}
Modified: trunk/banshee/src/Libraries/Migo/Migo.TaskCore/TaskGroup.cs
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo.TaskCore/TaskGroup.cs (original)
+++ trunk/banshee/src/Libraries/Migo/Migo.TaskCore/TaskGroup.cs Mon Jan 26 01:41:24 2009
@@ -828,6 +828,7 @@
private void SpawnExecutionThread ()
{
Thread t = new Thread (new ThreadStart (PumpQueue));
+ t.Name = GetType ().ToString ();
t.Priority = ThreadPriority.Normal;
t.IsBackground = true;
t.Start ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]