Home
last modified time | relevance | path

Searched refs:TaskHandle (Results 1 – 22 of 22) sorted by relevance

/base/startup/init/services/loopevent/include/
Dloop_event.h60 typedef LoopBase *TaskHandle; typedef
71 void LE_CloseTask(const LoopHandle loopHandle, const TaskHandle taskHandle);
77 void LE_FreeBuffer(const LoopHandle loopHandle, const TaskHandle taskHandle, const BufferHandle han…
79 void *LE_GetUserData(const TaskHandle handle);
82 typedef void (*LE_Close)(const TaskHandle taskHandle);
98 typedef void (*LE_DisConnectComplete)(const TaskHandle client);
99 typedef void (*LE_ConnectComplete)(const TaskHandle client);
100 typedef void (*LE_SendMessageComplete)(const TaskHandle taskHandle, BufferHandle handle);
101 typedef void (*LE_RecvMessage)(const TaskHandle taskHandle, const uint8_t *buffer, uint32_t buffLen…
102 typedef int (*LE_IncommingConnect)(const LoopHandle loopHandle, const TaskHandle serverTask);
[all …]
/base/startup/init/test/unittest/init/
Dloopevent_unittest.cpp51 static LE_STATUS TestHandleTaskEvent(const LoopHandle loop, const TaskHandle task, uint32_t oper) in TestHandleTaskEvent()
56 static void OnReceiveRequest(const TaskHandle task, const uint8_t *buffer, uint32_t nread) in OnReceiveRequest()
63 static void ProcessAsyncEvent(const TaskHandle taskHandle, uint64_t eventId, const uint8_t *buffer,… in ProcessAsyncEvent()
71 static int IncomingConnect(LoopHandle loop, TaskHandle server) in IncomingConnect()
112 TaskHandle clientTaskHandle = nullptr; in StreamTaskTest()
113 …LE_AcceptStreamClient(LE_GetDefaultLoop(), (TaskHandle)serverTask_, &clientTaskHandle, &streamInfo… in StreamTaskTest()
118 (TaskHandle)clientTaskHandle, Event_Read); in StreamTaskTest()
120 (TaskHandle)clientTaskHandle, Event_Write); in StreamTaskTest()
123 (TaskHandle)clientTaskHandle, 0); in StreamTaskTest()
127 TaskHandle clientTaskHandleb = nullptr; in StreamTaskTest()
[all …]
DSignalInitUnitTest.cpp56 …((BaseTask *)g_sigHandler)->handleEvent(LE_GetDefaultLoop(), (TaskHandle)&g_sigHandler, Event_Writ…
/base/startup/init/services/loopevent/task/
Dle_streamtask.c25 const TaskHandle taskHandle, const LE_SendMessageComplete complete) in HandleSendMsg_()
49 const TaskHandle taskHandle, const LE_RecvMessage recvMessage) in HandleRecvMsg_()
82 static LE_STATUS HandleStreamEvent_(const LoopHandle loopHandle, const TaskHandle handle, uint32_t … in HandleStreamEvent_()
105 static LE_STATUS HandleClientEvent_(const LoopHandle loopHandle, const TaskHandle handle, uint32_t … in HandleClientEvent_()
129 static void HandleStreamTaskClose_(const LoopHandle loopHandle, const TaskHandle taskHandle) in HandleStreamTaskClose_()
138 static LE_STATUS HandleServerEvent_(const LoopHandle loopHandle, const TaskHandle serverTask, uint3… in HandleServerEvent_()
157 TaskHandle *taskHandle, const LE_StreamServerInfo *info) in LE_CreateStreamServer()
181 *taskHandle = (TaskHandle)task; in LE_CreateStreamServer()
186 TaskHandle *taskHandle, const LE_StreamInfo *info) in LE_CreateStreamClient()
208 *taskHandle = (TaskHandle)task; in LE_CreateStreamClient()
[all …]
Dle_asynctask.c39 asyncTask->processAsyncEvent((TaskHandle)asyncTask, eventId, in DoAsyncEvent_()
58 void LE_DoAsyncEvent(const LoopHandle loopHandle, const TaskHandle taskHandle) in LE_DoAsyncEvent()
66 static LE_STATUS HandleAsyncEvent_(const LoopHandle loopHandle, const TaskHandle taskHandle, uint32… in HandleAsyncEvent_()
89 static void HandleAsyncTaskClose_(const LoopHandle loopHandle, const TaskHandle taskHandle) in HandleAsyncTaskClose_()
97 TaskHandle *taskHandle, LE_ProcessAsyncEvent processAsyncEvent) in LE_CreateAsyncTask()
116 *taskHandle = (TaskHandle)task; in LE_CreateAsyncTask()
121 const TaskHandle taskHandle, uint64_t eventId, const uint8_t *data, uint32_t buffLen) in LE_StartAsyncEvent()
136 void LE_StopAsyncTask(LoopHandle loopHandle, TaskHandle taskHandle) in LE_StopAsyncTask()
Dle_task.h52 typedef LE_STATUS (*HandleTaskEvent)(const LoopHandle loop, const TaskHandle task, uint32_t oper);
53 typedef void (*HandleTaskClose)(const LoopHandle loop, const TaskHandle task);
129 int GetSocketFd(const TaskHandle task);
Dle_task.c30 int GetSocketFd(const TaskHandle task) in GetSocketFd()
70 task->close((TaskHandle)task); in CloseTask()
152 void LE_FreeBuffer(const LoopHandle loop, const TaskHandle taskHandle, const BufferHandle handle) in LE_FreeBuffer()
171 const TaskHandle taskHandle, const BufferHandle buffHandle, uint32_t buffLen) in LE_Send()
189 void LE_CloseTask(const LoopHandle loopHandle, const TaskHandle taskHandle) in LE_CloseTask()
200 void *LE_GetUserData(TaskHandle handle) in LE_GetUserData()
Dle_watchtask.c18 static LE_STATUS HandleWatcherEvent_(const LoopHandle loopHandle, const TaskHandle taskHandle, uint… in HandleWatcherEvent_()
46 static void HandleWatcherTaskClose_(const LoopHandle loopHandle, const TaskHandle taskHandle) in HandleWatcherTaskClose_()
/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd.h45 TaskHandle serverTask;
50 TaskHandle task;
57 TaskHandle task;
Dcontrol_fd_service.c30 static void OnClose(const TaskHandle task) in OnClose()
38 CONTROL_FD_STATIC int CheckSocketPermission(const TaskHandle task) in CheckSocketPermission()
55 CONTROL_FD_STATIC void CmdOnRecvMessage(const TaskHandle task, const uint8_t *buffer, uint32_t buff… in CmdOnRecvMessage()
100 CONTROL_FD_STATIC int SendMessage(LoopHandle loop, TaskHandle task, const char *message) in SendMessage()
119 CONTROL_FD_STATIC int CmdOnIncommingConnect(const LoopHandle loop, const TaskHandle server) in CmdOnIncommingConnect()
121 TaskHandle client = NULL; in CmdOnIncommingConnect()
Dcontrol_fd_client.c66 CONTROL_FD_STATIC void CmdClientOnRecvMessage(const TaskHandle task, const uint8_t *buffer, uint32_… in CmdClientOnRecvMessage()
71 CONTROL_FD_STATIC void CmdOnConnectComplete(const TaskHandle client) in CmdOnConnectComplete()
76 CONTROL_FD_STATIC void CmdOnClose(const TaskHandle task) in CmdOnClose()
86 CONTROL_FD_STATIC void CmdDisConnectComplete(const TaskHandle client) in CmdDisConnectComplete()
91 CONTROL_FD_STATIC void CmdOnSendMessageComplete(const TaskHandle task, const BufferHandle handle) in CmdOnSendMessageComplete()
102 TaskHandle task = NULL; in CmdAgentCreate()
/base/startup/appspawn/standard/
Dappspawn_service.h48 TaskHandle stream;
63 TaskHandle server;
Dappspawn_service.c132 static void OnClose(const TaskHandle taskHandle) in OnClose()
138 APPSPAWN_STATIC void SendMessageComplete(const TaskHandle taskHandle, BufferHandle handle) in SendMessageComplete()
343 APPSPAWN_STATIC void OnReceiveRequest(const TaskHandle taskHandle, const uint8_t *buffer, uint32_t … in OnReceiveRequest()
418 TaskHandle g_testClientHandle = NULL;
419 TaskHandle GetTestClientHandle() in GetTestClientHandle()
424 APPSPAWN_STATIC int OnConnection(const LoopHandle loopHandle, const TaskHandle server) in OnConnection()
429 TaskHandle stream; in OnConnection()
/base/startup/init/test/unittest/innerkits/
Dinnerkits_unittest.cpp36 void CmdDisConnectComplete(const TaskHandle client);
37 void CmdOnSendMessageComplete(const TaskHandle task, const BufferHandle handle);
38 void CmdOnClose(const TaskHandle task);
39 void CmdOnConnectComplete(const TaskHandle client);
40 void CmdOnRecvMessage(const TaskHandle task, const uint8_t *buffer, uint32_t buffLen);
44 int CmdOnIncommingConnect(const LoopHandle loop, const TaskHandle server);
46 void CmdClientOnRecvMessage(const TaskHandle task, const uint8_t *buffer, uint32_t buffLen);
48 int SendMessage(LoopHandle loop, TaskHandle task, const char *message);
305 static int TestIncommingConnect(const LoopHandle loop, const TaskHandle server) in TestIncommingConnect()
362 TaskHandle testServer;
/base/startup/init/services/loopevent/timer/
Dle_timer.c41 static LE_STATUS HandleTimerEvent_(const LoopHandle loop, const TaskHandle task, uint32_t oper) in HandleTimerEvent_()
66 static void HandleTimerClose_(const LoopHandle loopHandle, const TaskHandle taskHandle) in HandleTimerClose_()
/base/startup/init/services/loopevent/signal/
Dle_signal.c27 static LE_STATUS HandleSignalEvent_(const LoopHandle loop, const TaskHandle task, uint32_t oper) in HandleSignalEvent_()
42 static void HandleSignalTaskClose_(const LoopHandle loopHandle, const TaskHandle signalHandle) in HandleSignalTaskClose_()
/base/startup/init/services/loopevent/loop/
Dle_epoll.c51 int fd = GetSocketFd((const TaskHandle)task); in AddEvent_()
67 int fd = GetSocketFd((const TaskHandle)task); in ModEvent_()
Dle_loop.c93 task->handleEvent((LoopHandle)loop, (TaskHandle)task, oper); in ProcessEvent()
/base/startup/init/services/param/linux/
Dparam_message.h105 int OnIncomingConnect(LoopHandle loop, TaskHandle server);
Dparam_msgadp.c29 static void OnReceiveRequest(const TaskHandle task, const uint8_t *buffer, uint32_t nread) in OnReceiveRequest()
Dparam_service.c337 PARAM_STATIC int OnIncomingConnect(LoopHandle loop, TaskHandle server) in OnIncomingConnect()
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
Dapp_spawn_standard_test.cpp45 int OnConnection(const LoopHandle loopHandle, const TaskHandle server);
47 void OnReceiveRequest(const TaskHandle taskHandle, const uint8_t *buffer, uint32_t buffLen);
50 void SendMessageComplete(const TaskHandle taskHandle, BufferHandle handle);
51 TaskHandle GetTestClientHandle();