CCThread

#ifndef __CC_PLATFORM_THREAD_H__

#define __CC_PLATFORM_THREAD_H__


#include "CCCommon.h"

#include "CCPlatformMacros.h"


NS_CC_BEGIN


/**

 * @addtogroup platform

 * @{

 */


/* 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();


    void createAutoreleasePool();


private:

    void *m_pAutoreasePool;

};


// end of platform group

/// @}


NS_CC_END


#endif    // __CC_PLATFORM_THREAD_H__


posted @ 2014-05-23 10:31  sssssnian  阅读(200)  评论(0)    收藏  举报