Changeset 4ff66ae in mainline for uspace/lib/c
- Timestamp:
- 2019-08-07T11:18:35Z (6 years ago)
- Children:
- 87a31ef2
- Parents:
- bb57a00
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-11-13 03:13:03)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 11:18:35)
- Location:
- uspace/lib/c
- Files:
-
- 4 edited
-
generic/task_event.c (modified) (2 diffs)
-
generic/taskman.c (modified) (1 diff)
-
include/ipc/taskman.h (modified) (1 diff)
-
include/taskman.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/task_event.c
rbb57a00 r4ff66ae 83 83 * Blocks, calls handler in another fibril 84 84 */ 85 int task_register_event_handler(task_event_handler_t handler )85 int task_register_event_handler(task_event_handler_t handler, bool past_events) 86 86 { 87 87 /* … … 95 95 96 96 async_exch_t *exch = taskman_exchange_begin(); 97 aid_t req = async_send_ 0(exch, TASKMAN_EVENT_CALLBACK, NULL);97 aid_t req = async_send_1(exch, TASKMAN_EVENT_CALLBACK, past_events, NULL); 98 98 99 99 int rc = async_connect_to_me(exch, 0, 0, 0, taskman_event_conn, NULL); -
uspace/lib/c/generic/taskman.c
rbb57a00 r4ff66ae 127 127 */ 128 128 129 int taskman_dump_events(void)130 {131 assert(session_taskman);132 133 async_exch_t *exch = async_exchange_begin(session_taskman);134 int rc = async_req_0_0(exch, TASKMAN_DUMP_EVENTS);135 taskman_exchange_end(exch);136 137 return rc;138 }139 140 129 async_sess_t *taskman_get_session(void) 141 130 { -
uspace/lib/c/include/ipc/taskman.h
rbb57a00 r4ff66ae 44 44 TASKMAN_EVENT_CALLBACK, 45 45 TASKMAN_NEW_TASK, 46 TASKMAN_I_AM_NS, 47 TASKMAN_DUMP_EVENTS 46 TASKMAN_I_AM_NS 48 47 } taskman_request_t; 49 48 -
uspace/lib/c/include/taskman.h
rbb57a00 r4ff66ae 40 40 #endif 41 41 42 extern int taskman_dump_events(void);43 44 42 /* Internal functions to be used by loader only */ 45 43 #ifndef TASKMAN_DISABLE_ASYNC
Note:
See TracChangeset
for help on using the changeset viewer.
