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


Ignore:
Timestamp:
2013-03-12T20:47:40Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e1edf1, 2b95d13
Parents:
623bab8f
Message:

Use 0 instead of -1 for the default fibril stack size and define
FIBRIL_DFLT_STK_SIZE to represent this special value.

File:
1 edited

Legend:

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

    r623bab8f receff5f  
    8686extern void context_restore(context_t *ctx) __attribute__((noreturn));
    8787
     88#define FIBRIL_DFLT_STK_SIZE    0
     89
    8890#define fibril_create(func, arg) \
    89         fibril_create_generic((func), (arg), (size_t) -1)
     91        fibril_create_generic((func), (arg), FIBRIL_DFLT_STK_SIZE)
    9092extern fid_t fibril_create_generic(int (*func)(void *), void *arg, size_t);
    9193extern void fibril_destroy(fid_t fid);
Note: See TracChangeset for help on using the changeset viewer.