diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 16:28:01 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 17:01:07 -0800 |
commit | 6c0ea9c39cd316b4c15ad75bad35ccb8e3f17f22 (patch) | |
tree | 52d25edae80fa0cd7b07a84c1742bfbf40012e66 | |
parent | 8dbdaafa2948a9c2fb180a9571bf3bb0a669b934 (diff) |
Add explanatory threading comment to -[ChangesController _reloadPackages:].
-rw-r--r-- | MobileCydia.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 17b08bd..bda674d 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7349,6 +7349,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } return self; } +// this mostly works because reloadData (below) is @synchronized (database_) +// XXX: that said, I've been running into problems with NSRangeExceptions :( - (void) _reloadPackages:(NSArray *)packages { CFRelease(packages_); packages_ = CFArrayCreateMutable(kCFAllocatorDefault, [packages count], NULL); |