Changeset bc73be3 in mainline for uspace/lib/c/include/fibril.h


Ignore:
Timestamp:
2019-06-27T08:51:20Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8add15e0
Parents:
ad40b74b (diff), aeba767 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

cpp: merge and resolve conflicts

File:
1 edited

Legend:

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

    rad40b74b rbc73be3  
    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.