import { Worker, isMainThread } from 'worker_threads';
import { wrt } from '../browser/wrt';
-import * as XWalkExtension from '../common/wrt_xwalk_extension';
interface WorkerMap {
[id: string]: any;
workers[id].postMessage({ type: 'stop', delay });
}
-let initializeExtensionOnMain = () => {
- initializeExtensionOnMain = () => {};
- XWalkExtension.initialize();
- // This is workaround solution to make webapis's singleton worker, which has
- // same smack label with pid's.
- // It must be handled ahead of dropThreadPrivilege()
- // Otherwise, smack violation might hanppen from 'libdbuspolicy'.
- global.tizen.systeminfo.getPropertyValue("CPU", () => { }, () => { });
-}
-
export function startService(id: string, filename: string) {
console.debug(`startService - ${id}`);
- initializeExtensionOnMain();
if (global['serviceType'] === 'STANDALONE') {
let ids = id.split(':');
let serviceId = ids[0];