Home
last modified time | relevance | path

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

/base/startup/init/services/loopevent/task/
H A Dle_watchtask.c64 WatcherHandle *watcherHandle, const LE_WatchInfo *info, const void *context) in LE_StartWatcher()
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()
63 LE_StartWatcher(const LoopHandle loopHandle, WatcherHandle *watcherHandle, const LE_WatchInfo *info, const void *context) LE_StartWatcher() argument
/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);
/base/startup/init/services/init/
H A Dinit_service_socket.c156 static void ProcessWatchEvent_(const WatcherHandle watcherHandle, int fd, uint32_t *events, const void *context) 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()
/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);
/base/startup/appspawn/standard/
H A Dappspawn_appmgr.c286 property->forkCtx.watcherHandle = NULL; in CreateAppSpawningCtx()
316 if (property->forkCtx.watcherHandle) { in DeleteAppSpawningCtx()
317 LE_RemoveWatcher(LE_GetDefaultLoop(), property->forkCtx.watcherHandle); in DeleteAppSpawningCtx()
318 property->forkCtx.watcherHandle = NULL; in DeleteAppSpawningCtx()
H A Dappspawn_manager.h70 WatcherHandle watcherHandle; member
H A Dappspawn_service.c639 LE_STATUS status = LE_StartWatcher(LE_GetDefaultLoop(), &property->forkCtx.watcherHandle, &watchInfo, property); in AddChildWatcher()
651 LE_RemoveWatcher(LE_GetDefaultLoop(), property->forkCtx.watcherHandle); in AddChildWatcher()
652 property->forkCtx.watcherHandle = NULL; in AddChildWatcher()
996 property->forkCtx.watcherHandle = NULL; // delete watcher in ProcessChildResponse()

Completed in 6 milliseconds