Changeset 5ab1648 in mainline


Ignore:
Timestamp:
2009-08-11T15:48:54Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7c68a05d
Parents:
5a8fbcb
Message:

remove obsolete TASK_WAIT notification

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ipc/event_types.h

    r5a8fbcb r5ab1648  
    3939        EVENT_KLOG = 0,
    4040        EVENT_KCONSOLE,
    41         EVENT_WAIT,
    4241        EVENT_END
    4342} event_type_t;
    44 
    45 typedef enum wait_type {
    46         TASK_CREATE = 0,
    47         TASK_DESTROY
    48 } wait_type_t;
    4943
    5044#endif
  • kernel/generic/src/proc/task.c

    r5a8fbcb r5ab1648  
    197197        interrupts_restore(ipl);
    198198       
    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        
    206199        return ta;
    207200}
     
    235228        if (atomic_predec(&t->as->refcount) == 0)
    236229                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));
    244230       
    245231        free(t);
  • uspace/srv/ns/task.h

    r5a8fbcb r5ab1648  
    3535
    3636#include <ipc/ipc.h>
    37 #include <event.h>
    3837
    3938extern int task_init(void);
    4039extern void process_pending_wait(void);
    4140
    42 extern void wait_notification(wait_type_t et, task_id_t id);
    4341extern void wait_for_task(task_id_t id, ipc_call_t *call, ipc_callid_t callid);
    4442
Note: See TracChangeset for help on using the changeset viewer.