Home
last modified time | relevance | path

Searched refs:forkArg (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/startup/init/test/unittest/modules/
H A Dcontext_unittest.cpp34 struct ForkArgs *forkArg = static_cast<struct ForkArgs *>(arg); in ThreadFunc() local
35 forkArg->childFunc(&forkArg->args); in ThreadFunc()
36 printf("Exit thread %d %d \n", forkArg->args.type, gettid()); in ThreadFunc()
37 free(forkArg); in ThreadFunc()
46 if (forkArg == nullptr) { in SubInitFork()
49 forkArg->childFunc = childFunc; in SubInitFork()
50 forkArg->args.socket[0] = args->socket[0]; in SubInitFork()
51 forkArg->args.socket[1] = args->socket[1]; in SubInitFork()
52 forkArg->args.type = args->type; in SubInitFork()
53 int ret = pthread_create(&g_thread, nullptr, ThreadFunc, forkArg); in SubInitFork()
[all …]
/ohos5.0/base/startup/appspawn/common/
H A Dappspawn_server.c149 AppSpawnForkArg *forkArg = (AppSpawnForkArg *)arg; in CloneAppSpawn() local
150 ProcessExit(AppSpawnChild(forkArg->content, forkArg->client)); in CloneAppSpawn()
/ohos5.0/base/startup/appspawn/modules/modulemgr/
H A Dappspawn_modulemgr.c203 AppSpawnHookArg forkArg; in AppSpawnHookExecute() local
204 forkArg.client = client; in AppSpawnHookExecute()
205 forkArg.content = content; in AppSpawnHookExecute()
210 int ret = HookMgrExecute(GetAppSpawnHookMgr(), stage, (void *)(&forkArg), &options); in AppSpawnHookExecute()