diff options
author | Max <post@wickenrode.com> | 2015-09-29 22:56:48 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-09-29 22:56:48 +0200 |
commit | fcde34d5b26f1cfe69e57b4f50e08ef462cb8d85 (patch) | |
tree | cecc4877b26b81928b56f85680ed3b2f808ccad3 | |
parent | 4aa8ff76ddc72289acc3a5c21a3ac2ed3a837472 (diff) | |
download | sequelpro-fcde34d5b26f1cfe69e57b4f50e08ef462cb8d85.tar.gz sequelpro-fcde34d5b26f1cfe69e57b4f50e08ef462cb8d85.tar.bz2 sequelpro-fcde34d5b26f1cfe69e57b4f50e08ef462cb8d85.zip |
Clarify thread names
-rw-r--r-- | Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m index 7443a67e..e8338bb4 100644 --- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m +++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m @@ -81,7 +81,7 @@ - (void)_threadedKeepAlive { keepAliveThread = [NSThread currentThread]; - [keepAliveThread setName:@"SPMySQL connection keepalive thread"]; + [keepAliveThread setName:@"SPMySQL connection keepalive monitor thread"]; // If the maximum number of ping failures has been reached, determine whether to reconnect. if (keepAliveLastPingBlocked || keepAlivePingFailures >= 3) { @@ -202,6 +202,8 @@ */ void _backgroundPingTask(void *ptr) { + pthread_setname_np("SPMySQL _backgroundPingTask() worker thread"); + SPMySQLConnectionPingDetails *pingDetails = (SPMySQLConnectionPingDetails *)ptr; // Set up a cleanup routine |