Rev 4581 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4581 | Rev 4718 | ||
---|---|---|---|
Line 73... | Line 73... | ||
73 | typedef struct fibril fibril_t; |
73 | typedef struct fibril fibril_t; |
74 | 74 | ||
75 | /** Fibril-local variable specifier */ |
75 | /** Fibril-local variable specifier */ |
76 | #define fibril_local __thread |
76 | #define fibril_local __thread |
77 | 77 | ||
78 | extern int context_save(context_t *c); |
78 | extern int context_save(context_t *c) __attribute__ ((returns_twice)); |
79 | extern void context_restore(context_t *c) __attribute__ ((noreturn)); |
79 | extern void context_restore(context_t *c) __attribute__ ((noreturn)); |
80 | 80 | ||
81 | extern fid_t fibril_create(int (*func)(void *), void *arg); |
81 | extern fid_t fibril_create(int (*func)(void *), void *arg); |
82 | extern fibril_t *fibril_setup(void); |
82 | extern fibril_t *fibril_setup(void); |
83 | extern void fibril_teardown(fibril_t *f); |
83 | extern void fibril_teardown(fibril_t *f); |