Changeset b22b0a94 in mainline for uspace/lib/c/generic/task.c


Ignore:
Timestamp:
2019-08-07T05:39:54Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
b8341bc
Parents:
5cd2290
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-10-19 21:34:52)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 05:39:54)
Message:

task: Inoperative API for passing kernel task events to uspace

  • Based on user-provided callback function.
  • Includes slight refactoring of tester application code.

Conflicts:

uspace/lib/c/include/task.h

File:
1 edited

Legend:

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

    r5cd2290 rb22b0a94  
    33 * Copyright (c) 2008 Jiri Svoboda
    44 * Copyright (c) 2014 Martin Sucha
     5 * Copyright (c) 2015 Michal Koutny
    56 * All rights reserved.
    67 *
     
    5354
    5455static async_sess_t *session_taskman = NULL;
     56static task_event_handler_t task_event_handler = NULL;
    5557
    5658task_id_t task_get_id(void)
     
    470472}
    471473
     474void task_set_event_handler(task_event_handler_t handler)
     475{
     476        task_event_handler = handler;
     477        // TODO implement logic for calling the handler
     478}
    472479
    473480void __task_init(async_sess_t *sess)
Note: See TracChangeset for help on using the changeset viewer.