Changes in uspace/lib/c/include/fibril.h [bd41ac52:4805495] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/fibril.h
rbd41ac52 r4805495 33 33 */ 34 34 35 #ifndef LIBC_FIBRIL_H_36 #define LIBC_FIBRIL_H_35 #ifndef _LIBC_FIBRIL_H_ 36 #define _LIBC_FIBRIL_H_ 37 37 38 38 #include <types/common.h> 39 39 #include <time.h> 40 40 #include <_bits/__noreturn.h> 41 #include <ipc/common.h>42 41 43 42 typedef struct fibril fibril_t; … … 49 48 typedef fibril_t *fid_t; 50 49 50 #ifndef __cplusplus 51 51 /** Fibril-local variable specifier */ 52 52 #define fibril_local __thread 53 54 #define FIBRIL_DFLT_STK_SIZE 0 53 #endif 55 54 56 55 extern fid_t fibril_create_generic(errno_t (*)(void *), void *, size_t); 56 extern fid_t fibril_create(errno_t (*)(void *), void *); 57 57 extern void fibril_destroy(fid_t); 58 58 extern void fibril_add_ready(fid_t); … … 68 68 extern void fibril_detach(fid_t fid); 69 69 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 75 70 extern void fibril_start(fid_t); 76 71 extern __noreturn void fibril_exit(long);
Note:
See TracChangeset
for help on using the changeset viewer.