Permalink
Browse files

fixes and cleanup

  • Loading branch information...
1 parent cd0c15b commit 638969e17108b1c227bfb8d320586059fe9e78ea @stevedekorte committed Sep 15, 2011
Showing with 6 additions and 8 deletions.
  1. +1 −1 ActorKit/BatchProxy.m
  2. +5 −7 README.txt
View
@@ -21,7 +21,7 @@ @implementation BatchProxy
- (void)dealloc
{
-
+ [self setBatchTarget:nil];
[super dealloc];
}
View
@@ -58,21 +58,17 @@ SyncProxy
NSMutableDictionary *dict = [[NSMutableDictionary dictionary] asSynchronous];
- Now message sends from all threads to dict will be locked such that only one
- thread can access it at a time.
+ You now have a thread safe dictionary.
BatchProxy
- Calling batch on an NSArray returns a BatchProxy which can be used to do
+ Calling asBatch on an NSArray returns a BatchProxy which can be used to do
a parallel "map" using GCD (BSD workerqueues). Example:
NSArray *results = [[urls asBatch] fetch];
- You can also combine asSynchronous and asBatch to get the type of synchronization
- and parallelism that suits your problem.
-
Notes
@@ -106,11 +102,13 @@ To Do
- convenience methods for performing blocking ops via single calls to instance methods
- - deadlock detection for actor queue limit, synchronous and batches
+ - auto deadlock detection for actor queue limit, synchronous and batches
- add a total queue and/or total actor limits
- better respondsToSelector implementation
+
+ - chainable batch groups with in, out, and error queues

0 comments on commit 638969e

Please sign in to comment.