Changeset b22b0a94 in mainline for uspace/lib/c/include/task.h


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/include/task.h

    r5cd2290 rb22b0a94  
    4646#define TASK_WAIT_BOTH   0x4
    4747
    48 typedef struct {
    49         int flags;
    50         ipc_call_t result;
    51         aid_t aid;
    52         task_id_t tid;
    53 } task_wait_t;
    54 
    5548static inline void task_wait_set(task_wait_t *wait, int flags)
    5649{
     
    7669    __attribute__((sentinel));
    7770
    78 // if there is possibility for further wait, modify task_wait
    7971extern errno_t task_wait(task_wait_t *, task_exit_t *, int *);
    8072extern errno_t task_wait_task_id(task_id_t, int, task_exit_t *, int *);
    81 // similar to listen and socket duplication
    82 extern errno_t task_wait_any(task_wait_t *, task_id_t *, task_exit_t *, int *,
    83     task_wait_t *);
    84 
    85 //extern int task_wait_any(int, task_exit_t *, int *);
    86 // alternative
    87 // task_wait_t is output param, actual result is obtained via task_wait call
    88 //extern int task_wait_any(task_wait_t *, int);
    8973
    9074extern void task_cancel_wait(task_wait_t *);
    9175
    9276extern errno_t task_retval(int);
     77extern void task_set_event_handler(task_event_handler_t);
    9378
    9479#endif
Note: See TracChangeset for help on using the changeset viewer.