Files
HiSTBLinuxV100R005C00SPC060/source/component/drm/base/ipc/test/testCase5/service_main.cpp
T
2024-08-12 23:03:27 +08:00

19 lines
504 B
C++
Executable File

#include <utils/Log.h>
#include <binder/ProcessState.h>
#include <binder/IPCThreadState.h>
#include <binder/IServiceManager.h>
#include "MyTestService.h"
int main(int argc, char** argv)
{
sp<ProcessState> proc(ProcessState::self());
printf("start my service...\n");
//sp<IServiceManager> sm = defaultServiceManager();
MyTestService::instantiate();
ProcessState::self()->startThreadPool();
printf("start join thread pool...\n");
IPCThreadState::self()->joinThreadPool();
}