diff options
Diffstat (limited to 'Source/SPDataStorage.h')
-rw-r--r-- | Source/SPDataStorage.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPDataStorage.h b/Source/SPDataStorage.h index bb45f71b..23c7e124 100644 --- a/Source/SPDataStorage.h +++ b/Source/SPDataStorage.h @@ -44,6 +44,7 @@ SPMySQLStreamingResultStore *dataStorage; NSPointerArray *editedRows; BOOL *unloadedColumns; + NSCondition *dataDownloadedLock; NSUInteger numberOfColumns; NSUInteger editedRowCount; @@ -75,6 +76,12 @@ - (NSUInteger) columnCount; - (BOOL) dataDownloaded; +/** + * This method will block the caller until -dataDownloaded returns YES. + * Multiple parallel calls from different threads are possible. + */ +- (void) awaitDataDownloaded; + /* Delegate callback methods */ - (void)resultStoreDidFinishLoadingData:(SPMySQLStreamingResultStore *)resultStore; |