Ignore:
File:
1 edited

Legend:

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

    rbc56f30 rbd41ac52  
    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>
    3839#include <time.h>
    39 #include <_bits/errno.h>
    4040#include <_bits/__noreturn.h>
    41 #include <_bits/decls.h>
    42 
    43 __HELENOS_DECLS_BEGIN;
     41#include <ipc/common.h>
    4442
    4543typedef struct fibril fibril_t;
     
    5149typedef fibril_t *fid_t;
    5250
    53 #ifndef __cplusplus
    5451/** Fibril-local variable specifier */
    5552#define fibril_local __thread
    56 #endif
     53
     54#define FIBRIL_DFLT_STK_SIZE    0
    5755
    5856extern fid_t fibril_create_generic(errno_t (*)(void *), void *, size_t);
    59 extern fid_t fibril_create(errno_t (*)(void *), void *);
    6057extern void fibril_destroy(fid_t);
    6158extern void fibril_add_ready(fid_t);
     
    7168extern void fibril_detach(fid_t fid);
    7269
     70static 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
    7375extern void fibril_start(fid_t);
    7476extern __noreturn void fibril_exit(long);
    75 
    76 __HELENOS_DECLS_END;
    7777
    7878#endif
Note: See TracChangeset for help on using the changeset viewer.