CCThread(On iOS, should create autorelease pool when create a new thread)
来源:互联网 发布:nhj提取软件 编辑:程序博客网 时间:2024/04/28 03:22
#ifndef __CC_PLATFORM_THREAD_H__
#define __CC_PLATFORM_THREAD_H__
#include "CCCommon.h"
#include "CCPlatformMacros.h"
NS_CC_BEGIN
/* On iOS, should create autorelease pool when create a new thread
* and release it when the thread end.
*/
class CC_DLL CCThread
{
public:
CCThread() : m_pAutoreasePool(0) {}
~CCThread();
{
[(id)m_pAutoreasePool release];
}
void createAutoreleasePool();
{
m_pAutoreasePool = [[NSAutoreleasePool alloc] init];
}
private:
void *m_pAutoreasePool;
};
NS_CC_END
#endif
0 0
- CCThread(On iOS, should create autorelease pool when create a new thread)
- create new thread
- Create a thread demo
- Create A Thread
- Create a new role
- Create a new user
- Two ways to create a new thread of execution
- Create and enable new swap space on a Linux server
- Create a thread under linux
- 一、Create-a-new-project
- Magento2 create a new module
- Git Create a new repository
- create a new ROS package
- When Not to Create a Thread-come from WINDOWS VIA C C++
- OutOfMemoryError: unable to create new native thread
- myeclipse unable to create new native thread
- hadoop: unable to create new native thread
- OutOfMemoryError: unable to create new native thread
- Java中影响方法调用性能的因素
- Cython基础--Cython入门
- LeetCode: Permutations II [046]
- 第03章-VTK系统概述(1)
- android 程序优化之查错篇
- CCThread(On iOS, should create autorelease pool when create a new thread)
- PHP json_encode中文乱码解决方法--json乱码处理
- 4我回来了+安卓程序报错,无法启动的解决办法
- Codeforces #247 (Div. 2) B. Shower Line
- JDBC事务处理
- oracle数据连接情况及显示客户端IP
- CCSAXParser(可以用来读xml等)
- linux gz 解压缩
- CCPlatformMacros(平台宏 CREATE_FUNC USING_NS_CC CC_PROPERTY_READONLY等属性 CC_SAFE_DELETE)