Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/fibril.h

    rbd41ac52 rbc56f30  
    3333 */
    3434
    35 #ifndef LIBC_FIBRIL_H_
    36 #define LIBC_FIBRIL_H_
     35#ifndef _LIBC_FIBRIL_H_
     36#define _LIBC_FIBRIL_H_
    3737
    38 #include <types/common.h>
    3938#include <time.h>
     39#include <_bits/errno.h>
    4040#include <_bits/__noreturn.h>
    41 #include <ipc/common.h>
     41#include <_bits/decls.h>
     42
     43__HELENOS_DECLS_BEGIN;
    4244
    4345typedef struct fibril fibril_t;
     
    4951typedef fibril_t *fid_t;
    5052
     53#ifndef __cplusplus
    5154/** Fibril-local variable specifier */
    5255#define fibril_local __thread
    53 
    54 #define FIBRIL_DFLT_STK_SIZE    0
     56#endif
    5557
    5658extern fid_t fibril_create_generic(errno_t (*)(void *), void *, size_t);
     59extern fid_t fibril_create(errno_t (*)(void *), void *);
    5760extern void fibril_destroy(fid_t);
    5861extern void fibril_add_ready(fid_t);
     
    6871extern void fibril_detach(fid_t fid);
    6972
    70 static inline fid_t fibril_create(errno_t (*func)(void *), void *arg)
    71 {
    72         return fibril_create_generic(func, arg, FIBRIL_DFLT_STK_SIZE);
    73 }
    74 
    7573extern void fibril_start(fid_t);
    7674extern __noreturn void fibril_exit(long);
     75
     76__HELENOS_DECLS_END;
    7777
    7878#endif
Note: See TracChangeset for help on using the changeset viewer.