1
0
mirror of https://github.com/ioacademy-jikim/multimedia synced 2025-06-08 00:16:10 +00:00
2015-08-04 19:14:13 +09:00

28 lines
428 B
C++

#include <binder/IServiceManager.h>
#include <utils/StrongPointer.h>
#include <utils/Thread.h>
#include <binder/MemoryHeapBase.h>
#include <binder/IPCThreadState.h>
using namespace android;
class MyThread : public Thread
{
public :
bool threadLoop()
{
printf("MyThread::threadLoop()\n");
sleep(1);
return true;
}
};
int main()
{
sp<Thread> thread = new MyThread;
thread->run();
getchar();
return 0;
}