Changeset c07544d3 in mainline for uspace/lib/libc/include/async.h


Ignore:
Timestamp:
2009-04-24T15:38:18Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
10270a8
Parents:
422fd81
Message:

create a new fibril for each notification received, which allows to do nested async calls from the notification handler
(this fixes ticket #19 and solves various problems with klog)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/async.h

    r422fd81 rc07544d3  
    9999/* Wrappers for simple communication */
    100100#define async_msg_0(phone, method) \
    101     ipc_call_async_0((phone), (method), NULL, NULL, !in_interrupt_handler())
     101    ipc_call_async_0((phone), (method), NULL, NULL, true)
    102102#define async_msg_1(phone, method, arg1) \
    103103    ipc_call_async_1((phone), (method), (arg1), NULL, NULL, \
    104         !in_interrupt_handler())
     104        true)
    105105#define async_msg_2(phone, method, arg1, arg2) \
    106106    ipc_call_async_2((phone), (method), (arg1), (arg2), NULL, NULL, \
    107         !in_interrupt_handler())
     107        true)
    108108#define async_msg_3(phone, method, arg1, arg2, arg3) \
    109109    ipc_call_async_3((phone), (method), (arg1), (arg2), (arg3), NULL, NULL, \
    110         !in_interrupt_handler())
     110        true)
    111111#define async_msg_4(phone, method, arg1, arg2, arg3, arg4) \
    112112    ipc_call_async_4((phone), (method), (arg1), (arg2), (arg3), (arg4), NULL, \
    113         NULL, !in_interrupt_handler())
     113        NULL, true)
    114114#define async_msg_5(phone, method, arg1, arg2, arg3, arg4, arg5) \
    115115    ipc_call_async_5((phone), (method), (arg1), (arg2), (arg3), (arg4), \
    116         (arg5), NULL, NULL, !in_interrupt_handler())
     116        (arg5), NULL, NULL, true)
    117117
    118118/*
     
    254254}
    255255
    256 extern bool in_interrupt_handler(void);
    257 
    258256extern atomic_t async_futex;
    259257
Note: See TracChangeset for help on using the changeset viewer.