Ignore:
File:
1 edited

Legend:

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

    rbd41ac52 r4805495  
    3333 */
    3434
    35 #ifndef LIBC_FIBRIL_H_
    36 #define LIBC_FIBRIL_H_
     35#ifndef _LIBC_FIBRIL_H_
     36#define _LIBC_FIBRIL_H_
    3737
    3838#include <types/common.h>
    3939#include <time.h>
    4040#include <_bits/__noreturn.h>
    41 #include <ipc/common.h>
    4241
    4342typedef struct fibril fibril_t;
     
    4948typedef fibril_t *fid_t;
    5049
     50#ifndef __cplusplus
    5151/** Fibril-local variable specifier */
    5252#define fibril_local __thread
    53 
    54 #define FIBRIL_DFLT_STK_SIZE    0
     53#endif
    5554
    5655extern fid_t fibril_create_generic(errno_t (*)(void *), void *, size_t);
     56extern fid_t fibril_create(errno_t (*)(void *), void *);
    5757extern void fibril_destroy(fid_t);
    5858extern void fibril_add_ready(fid_t);
     
    6868extern void fibril_detach(fid_t fid);
    6969
    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 
    7570extern void fibril_start(fid_t);
    7671extern __noreturn void fibril_exit(long);
Note: See TracChangeset for help on using the changeset viewer.