Changeset 5ab1648 in mainline
- Timestamp:
- 2009-08-11T15:48:54Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7c68a05d
- Parents:
- 5a8fbcb
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ipc/event_types.h
r5a8fbcb r5ab1648 39 39 EVENT_KLOG = 0, 40 40 EVENT_KCONSOLE, 41 EVENT_WAIT,42 41 EVENT_END 43 42 } event_type_t; 44 45 typedef enum wait_type {46 TASK_CREATE = 0,47 TASK_DESTROY48 } wait_type_t;49 43 50 44 #endif -
kernel/generic/src/proc/task.c
r5a8fbcb r5ab1648 197 197 interrupts_restore(ipl); 198 198 199 /*200 * Notify about task creation.201 */202 if (event_is_subscribed(EVENT_WAIT))203 event_notify_3(EVENT_WAIT, TASK_CREATE, LOWER32(ta->taskid),204 UPPER32(ta->taskid));205 206 199 return ta; 207 200 } … … 235 228 if (atomic_predec(&t->as->refcount) == 0) 236 229 as_destroy(t->as); 237 238 /*239 * Notify about task destruction.240 */241 if (event_is_subscribed(EVENT_WAIT))242 event_notify_3(EVENT_WAIT, TASK_DESTROY, LOWER32(t->taskid),243 UPPER32(t->taskid));244 230 245 231 free(t); -
uspace/srv/ns/task.h
r5a8fbcb r5ab1648 35 35 36 36 #include <ipc/ipc.h> 37 #include <event.h>38 37 39 38 extern int task_init(void); 40 39 extern void process_pending_wait(void); 41 40 42 extern void wait_notification(wait_type_t et, task_id_t id);43 41 extern void wait_for_task(task_id_t id, ipc_call_t *call, ipc_callid_t callid); 44 42
Note:
See TracChangeset
for help on using the changeset viewer.