~jsvoboda/helenos/dnsr

« back to all changes in this revision

Viewing changes to uspace/lib/c/include/fibril.h

  • Committer: Jiri Svoboda
  • Date: 2013-04-19 18:38:18 UTC
  • mfrom: (1527.1.284 main-clone)
  • Revision ID: jiri@wiwaxia-20130419183818-nvfibuh4t5qol0e3
MergeĀ mainlineĀ chages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
extern int context_save(context_t *ctx) __attribute__((returns_twice));
86
86
extern void context_restore(context_t *ctx) __attribute__((noreturn));
87
87
 
88
 
extern fid_t fibril_create(int (*func)(void *), void *arg);
 
88
#define FIBRIL_DFLT_STK_SIZE    0
 
89
 
 
90
#define fibril_create(func, arg) \
 
91
        fibril_create_generic((func), (arg), FIBRIL_DFLT_STK_SIZE)
 
92
extern fid_t fibril_create_generic(int (*func)(void *), void *arg, size_t);
89
93
extern void fibril_destroy(fid_t fid);
90
94
extern fibril_t *fibril_setup(void);
91
95
extern void fibril_teardown(fibril_t *f);