main_androidshmservice.cpp 476 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define LOG_TAG "main_androidshmservice"

#include <binder/IPCThreadState.h>
#include <binder/ProcessState.h>
#include <binder/IServiceManager.h>
#include <utils/Log.h>

#include "../../common/shm.h"
#include "../Shm.h"  //android extension of shm.h

using namespace android;

int main(int argc, char *argv[]) {
	jack_instantiate();
	ProcessState::self()->startThreadPool();
	ALOGI("AndroidShmService is starting now");
	IPCThreadState::self()->joinThreadPool();
	return 0;
}