EXC_ARM_DA_ALIGN与OSAtomicAdd64Barrier

时间:2014-08-07 09:43:48

标签: ios objective-c exception arm atomic

调用块时,我得到一个EXC_BAD_ACCESS(代码= EXC_ARM_DA_ALIGN)(设备,iOS 7)

[anAFURLConnectionOperation setDownloadProgressBlock:^(NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) {
    [[ASingleton sharedInstance] incRecv:(int64_t)bytesRead];
}];

,其中

@interface ASingleton () {
    int64_t _recv;
}
@end

@implementation
- (void)incRecv:(int64_t)recv
{
    OSAtomicAdd64Barrier(recv, &_recv);
}
@end

任何线索?感谢。

0 个答案:

没有答案