aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-09-29 22:56:48 +0200
committerMax <post@wickenrode.com>2015-09-29 22:56:48 +0200
commitfcde34d5b26f1cfe69e57b4f50e08ef462cb8d85 (patch)
treececc4877b26b81928b56f85680ed3b2f808ccad3 /Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories
parent4aa8ff76ddc72289acc3a5c21a3ac2ed3a837472 (diff)
downloadsequelpro-fcde34d5b26f1cfe69e57b4f50e08ef462cb8d85.tar.gz
sequelpro-fcde34d5b26f1cfe69e57b4f50e08ef462cb8d85.tar.bz2
sequelpro-fcde34d5b26f1cfe69e57b4f50e08ef462cb8d85.zip
Clarify thread names
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories')
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m4
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