Changeset 6deb2cd in mainline for uspace/lib/c/generic/async.c


Ignore:
Timestamp:
2017-12-08T21:17:27Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9233e9d
Parents:
125c09c
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 16:46:52)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:17:27)
Message:

Return capability handle in SYS_IPC_WAIT via call data structure, separately from error codes.

File:
1 edited

Legend:

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

    r125c09c r6deb2cd  
    14831483               
    14841484                ipc_call_t call;
    1485                 cap_handle_t chandle = ipc_wait_cycle(&call, timeout, flags);
     1485                int rc = ipc_wait_cycle(&call, timeout, flags);
    14861486               
    14871487                atomic_dec(&threads_in_ipc_wait);
    14881488               
    1489                 assert(chandle >= 0);
    1490 
    1491                 if (chandle == CAP_NIL) {
     1489                assert(rc == EOK);
     1490
     1491                if (call.cap_handle == CAP_NIL) {
    14921492                        if (call.flags == 0) {
    14931493                                /* This neither a notification nor an answer. */
     
    15001500                        continue;
    15011501
    1502                 handle_call(chandle, &call);
     1502                handle_call(call.cap_handle, &call);
    15031503        }
    15041504
Note: See TracChangeset for help on using the changeset viewer.