hello everyone,
I want to use pthread to new a new thread, but at build my project that have a problem.
The log said, can not open file “pthread.h”: No such file or directory.
how I to do.
my code:
#ifndef SENDDATA_H
#define SENDDATA_H
#include <pthread.h>
#include “cocos2d.h”
class SendData
{
public:
SendData(void);
virtual ~SendData(void);
SendData GetSelf();
protected:
private:
SendData* m_pSendData;
pthread_t tid;
int UpDate();
};
#endif
BTW
if I write it like this:
<cocos2dx/platform/third_party/win32/pthread/pthread.h>
The log said that “sched.h”: No such file or directory
i want to use it on my android project. Can I use it?