aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructure.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-07-02 23:46:51 +0200
committerMax <post@wickenrode.com>2015-07-02 23:46:51 +0200
commitc124db7ac403cdd92cc2c26e572f37f7b7d4ae75 (patch)
tree401d9839f330ad88e57dba86ae8f0c7230d5c6d8 /Source/SPTableStructure.m
parent3c49b0f2bc16777f83cf57825448b6689ed344e1 (diff)
downloadsequelpro-c124db7ac403cdd92cc2c26e572f37f7b7d4ae75.tar.gz
sequelpro-c124db7ac403cdd92cc2c26e572f37f7b7d4ae75.tar.bz2
sequelpro-c124db7ac403cdd92cc2c26e572f37f7b7d4ae75.zip
Add some info which might help a bit with debugging threading issues
Diffstat (limited to 'Source/SPTableStructure.m')
-rw-r--r--Source/SPTableStructure.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m
index cdc1c8c7..1e0c9f5e 100644
--- a/Source/SPTableStructure.m
+++ b/Source/SPTableStructure.m
@@ -535,7 +535,7 @@ static NSString *SPRemoveFieldAndForeignKey = @"SPRemoveFieldAndForeignKey";
NSNumber *removeKey = [NSNumber numberWithBool:[(NSString *)contextInfo isEqualToString:SPRemoveFieldAndForeignKey]];
if ([NSThread isMainThread]) {
- [NSThread detachNewThreadWithName:@"SPTableStructure field and key removal task"
+ [NSThread detachNewThreadWithName:SPCtxt(@"SPTableStructure field and key removal task", tableDocumentInstance)
target:self
selector:@selector(_removeFieldAndForeignKey:)
object:removeKey];
@@ -969,7 +969,7 @@ static NSString *SPRemoveFieldAndForeignKey = @"SPRemoveFieldAndForeignKey";
[tableDocumentInstance setContentRequiresReload:YES];
// Query the structure of all databases in the background
- [NSThread detachNewThreadWithName:@"SPNavigatorController database structure querier" target:[tableDocumentInstance databaseStructureRetrieval] selector:@selector(queryDbStructureWithUserInfo:) object:[NSDictionary dictionaryWithObjectsAndKeys:@YES, @"forceUpdate", selectedTable, @"affectedItem", [NSNumber numberWithInteger:[tablesListInstance tableType]], @"affectedItemType", nil]];
+ [NSThread detachNewThreadWithName:SPCtxt(@"SPNavigatorController database structure querier", tableDocumentInstance) target:[tableDocumentInstance databaseStructureRetrieval] selector:@selector(queryDbStructureWithUserInfo:) object:[NSDictionary dictionaryWithObjectsAndKeys:@YES, @"forceUpdate", selectedTable, @"affectedItem", [NSNumber numberWithInteger:[tablesListInstance tableType]], @"affectedItemType", nil]];
return YES;
}