Changeset 4ff66ae in mainline for uspace/lib/c/generic/task_event.c


Ignore:
Timestamp:
2019-08-07T11:18:35Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
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)
Message:

taskman: Bind events dump to register handler

  • So that no events are processed twice or omitted.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/task_event.c

    rbb57a00 r4ff66ae  
    8383 * Blocks, calls handler in another fibril
    8484 */
    85 int task_register_event_handler(task_event_handler_t handler)
     85int task_register_event_handler(task_event_handler_t handler, bool past_events)
    8686{
    8787        /*
     
    9595
    9696        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);
    9898
    9999        int rc = async_connect_to_me(exch, 0, 0, 0, taskman_event_conn, NULL);
Note: See TracChangeset for help on using the changeset viewer.