mirror of
https://github.com/ioacademy-jikim/multimedia
synced 2025-06-08 00:16:10 +00:00
28 lines
428 B
C++
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;
|
|
}
|