Home
last modified time | relevance | path

Searched refs:watcherHandle (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/base/startup/init/services/loopevent/task/
H A Dle_watchtask.c64 WatcherHandle *watcherHandle, const LE_WatchInfo *info, const void *context) in LE_StartWatcher() argument
66 …LE_CHECK(loopHandle != NULL && watcherHandle != NULL, return LE_INVALID_PARAM, "Invalid parameters… in LE_StartWatcher()
81 *watcherHandle = (WatcherHandle)task; in LE_StartWatcher()
85 void LE_RemoveWatcher(const LoopHandle loopHandle, const WatcherHandle watcherHandle) in LE_RemoveWatcher() argument
87 LE_CHECK(loopHandle != NULL && watcherHandle != NULL, return, "Invalid parameters"); in LE_RemoveWatcher()
88 LE_CloseTask(loopHandle, watcherHandle); in LE_RemoveWatcher()
/ohos5.0/base/startup/init/services/init/
H A Dinit_service_socket.c156 static void ProcessWatchEvent_(const WatcherHandle watcherHandle, int fd, uint32_t *events, const v… in ProcessWatchEvent_() argument
174 RemoveSocketWatcher(watcherHandle); in ProcessWatchEvent_()
180 int AddSocketWatcher(ServiceWatcher *watcherHandle, Service *service, int fd) in AddSocketWatcher() argument
190 *watcherHandle = (ServiceWatcher)handle; in AddSocketWatcher()
194 void RemoveSocketWatcher(ServiceWatcher watcherHandle) in RemoveSocketWatcher() argument
196 LE_RemoveWatcher(LE_GetDefaultLoop(), (WatcherHandle)watcherHandle); in RemoveSocketWatcher()
/ohos5.0/base/startup/init/services/init/include/
H A Dinit_service_socket.h78 int AddSocketWatcher(ServiceWatcher *watcherHandle, Service *service, int fd);
79 void RemoveSocketWatcher(ServiceWatcher watcherHandle);
/ohos5.0/base/startup/appspawn/standard/
H A Dappspawn_appmgr.c285 property->forkCtx.watcherHandle = NULL; in CreateAppSpawningCtx()
315 if (property->forkCtx.watcherHandle) { in DeleteAppSpawningCtx()
316 LE_RemoveWatcher(LE_GetDefaultLoop(), property->forkCtx.watcherHandle); in DeleteAppSpawningCtx()
317 property->forkCtx.watcherHandle = NULL; in DeleteAppSpawningCtx()
H A Dappspawn_manager.h70 WatcherHandle watcherHandle; member
H A Dappspawn_service.c632 …LE_STATUS status = LE_StartWatcher(LE_GetDefaultLoop(), &property->forkCtx.watcherHandle, &watchIn… in AddChildWatcher()
644 LE_RemoveWatcher(LE_GetDefaultLoop(), property->forkCtx.watcherHandle); in AddChildWatcher()
645 property->forkCtx.watcherHandle = NULL; in AddChildWatcher()
987 property->forkCtx.watcherHandle = NULL; // delete watcher in ProcessChildResponse()
/ohos5.0/base/startup/init/interfaces/innerkits/include/
H A Dloop_event.h186 WatcherHandle *watcherHandle, const LE_WatchInfo *info, const void *context);
187 void LE_RemoveWatcher(const LoopHandle loopHandle, const WatcherHandle watcherHandle);