From fcde34d5b26f1cfe69e57b4f50e08ef462cb8d85 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 29 Sep 2015 22:56:48 +0200 Subject: Clarify thread names --- .../Source/SPMySQLConnection Categories/Ping & KeepAlive.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories') 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 -- cgit v1.2.3