Changeset 01ff41c in mainline for libc/include


Ignore:
Timestamp:
2006-05-27T22:28:25Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7f5b37a
Parents:
7f9cd77
Message:

Added functions to async framework for reasonable sending asynchronous
messages.

Location:
libc/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libc/include/async.h

    r7f9cd77 r01ff41c  
    44#include <ipc/ipc.h>
    55#include <psthread.h>
     6
     7typedef ipc_callid_t aid_t;
    68
    79int async_manager(void);
     
    1113ipc_callid_t async_get_call(ipc_call_t *data);
    1214
    13 /* Should be defined by application */
    1415pstid_t async_new_connection(ipc_callid_t callid, ipc_call_t *call,
    1516                             void (*cthread)(ipc_callid_t,ipc_call_t *));
     17aid_t async_send_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2,
     18                   ipc_call_t *dataptr);
     19void async_wait_for(aid_t amsgid, ipcarg_t *result);
     20
     21
     22/* Should be defined by application */
    1623void client_connection(ipc_callid_t callid, ipc_call_t *call) __attribute__((weak));
    1724
  • libc/include/psthread.h

    r7f9cd77 r01ff41c  
    7575void psthread_add_manager(pstid_t psthrid);
    7676void psthread_remove_manager(void);
     77pstid_t psthread_get_id(void);
    7778
    7879static inline int psthread_schedule_next() {
  • libc/include/thread.h

    r7f9cd77 r01ff41c  
    3939extern int thread_create(void (* function)(void *arg), void *arg, char *name);
    4040extern void thread_exit(int status);
    41 tcb_t * __make_tls(void);
    42 tcb_t * __alloc_tls(void **data, size_t size);
    43 void __free_tls(tcb_t *);
    44 void __free_tls_arch(tcb_t *, size_t size);
     41extern tcb_t * __make_tls(void);
     42extern tcb_t * __alloc_tls(void **data, size_t size);
     43extern void __free_tls(tcb_t *);
     44extern void __free_tls_arch(tcb_t *, size_t size);
    4545
    4646#endif
Note: See TracChangeset for help on using the changeset viewer.