【发布时间】:2012-07-17 01:05:26
【问题描述】:
我可能想多了。
// Inside some method...
NSThread *thread = [[NSThread alloc] initWithTarget:functionWrapper selector:@selector(run) object:nil];
[thread start];
在此之后调用[thread release]:A. 避免内存泄漏并且是必要的,或者... B. 会破坏事情。
this question 的答案表明线程在完成执行后会自行释放,但该行为记录在哪里?
【问题讨论】:
标签: objective-c ios memory-management