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