diff options
author | rowanbeentje <rowan@beent.je> | 2009-11-28 19:58:03 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-11-28 19:58:03 +0000 |
commit | 657966e2c2b37a988b145813e1787af4e6a962ad (patch) | |
tree | 579d83d09178e7fd266e803d6deadf2dbb1bb9ba /Source/TableContent.h | |
parent | 19867175eed5aebee585c1ba6d8901176422703d (diff) | |
download | sequelpro-657966e2c2b37a988b145813e1787af4e6a962ad.tar.gz sequelpro-657966e2c2b37a988b145813e1787af4e6a962ad.tar.bz2 sequelpro-657966e2c2b37a988b145813e1787af4e6a962ad.zip |
- When working with the storage arrays for CustomQuery and TableContent, use thread locking to ensure data safety while the table is loading. This should fix intermittent loading and reload issues, including part of #463 and should address Issue #482
Diffstat (limited to 'Source/TableContent.h')
-rw-r--r-- | Source/TableContent.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/TableContent.h b/Source/TableContent.h index e3a9bd50..e675d528 100644 --- a/Source/TableContent.h +++ b/Source/TableContent.h @@ -68,6 +68,8 @@ MCPConnection *mySQLConnection; BOOL _mainNibLoaded; + BOOL isWorking; + pthread_mutex_t tableValuesLock; NSString *selectedTable, *usedQuery; NSMutableArray *tableValues, *dataColumns, *keys, *oldRow; @@ -98,6 +100,7 @@ // Table loading methods and information - (void) loadTable:(NSString *)aTable; +- (void) clearTableValues; - (void) loadTableValues; - (NSString *) tableFilterString; - (void) updateCountText; |