Ignore:
File:
1 edited

Legend:

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

    r4805495 rbd41ac52  
    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>
    4142
    4243typedef struct fibril fibril_t;
     
    4849typedef fibril_t *fid_t;
    4950
    50 #ifndef __cplusplus
    5151/** Fibril-local variable specifier */
    5252#define fibril_local __thread
    53 #endif
     53
     54#define FIBRIL_DFLT_STK_SIZE    0
    5455
    5556extern fid_t fibril_create_generic(errno_t (*)(void *), void *, size_t);
    56 extern 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
     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
    7075extern void fibril_start(fid_t);
    7176extern __noreturn void fibril_exit(long);
Note: See TracChangeset for help on using the changeset viewer.