summaryrefslogtreecommitdiffstats
path: root/macosx/HBDistributedArray.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-19 17:52:32 +0200
committerDamiano Galassi <[email protected]>2015-10-19 17:52:32 +0200
commite5b59be057da16e782d970e41299d78beef9e878 (patch)
treea4f84643b50cfd72f006cefd693d4ddc8b5de5d5 /macosx/HBDistributedArray.h
parent8720ad99a5a74a96a8413d339b0eda140bbae2bc (diff)
MacGui: add a recursive lock to HBDistributedArray.
Diffstat (limited to 'macosx/HBDistributedArray.h')
-rw-r--r--macosx/HBDistributedArray.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/macosx/HBDistributedArray.h b/macosx/HBDistributedArray.h
index e72484aae..483f1ac57 100644
--- a/macosx/HBDistributedArray.h
+++ b/macosx/HBDistributedArray.h
@@ -18,6 +18,11 @@ extern NSString *HBDistributedArrayChanged;
@end
+typedef NS_ENUM(NSUInteger, HBDistributedArrayContent) {
+ HBDistributedArrayContentAcquired,
+ HBDistributedArrayContentReload,
+};
+
/**
* HBDistributedArray
* a mutable array that share its content between processes.
@@ -33,9 +38,11 @@ extern NSString *HBDistributedArrayChanged;
- (instancetype)initWithURL:(NSURL *)fileURL;
/**
- * Begin a transaction on the array
+ * Begins a transaction on the array
+ *
+ * @return whether the array content changes or not after beginning the transaction.
*/
-- (void)beginTransaction;
+- (HBDistributedArrayContent)beginTransaction;
/**
* Commit the changes and notify