Changes in uspace/lib/c/include/fibril.h [bd41ac52:bc56f30] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/fibril.h
rbd41ac52 rbc56f30 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 #include <types/common.h>39 38 #include <time.h> 39 #include <_bits/errno.h> 40 40 #include <_bits/__noreturn.h> 41 #include <ipc/common.h> 41 #include <_bits/decls.h> 42 43 __HELENOS_DECLS_BEGIN; 42 44 43 45 typedef struct fibril fibril_t; … … 49 51 typedef fibril_t *fid_t; 50 52 53 #ifndef __cplusplus 51 54 /** Fibril-local variable specifier */ 52 55 #define fibril_local __thread 53 54 #define FIBRIL_DFLT_STK_SIZE 0 56 #endif 55 57 56 58 extern fid_t fibril_create_generic(errno_t (*)(void *), void *, size_t); 59 extern fid_t fibril_create(errno_t (*)(void *), void *); 57 60 extern void fibril_destroy(fid_t); 58 61 extern void fibril_add_ready(fid_t); … … 68 71 extern void fibril_detach(fid_t fid); 69 72 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 73 extern void fibril_start(fid_t); 76 74 extern __noreturn void fibril_exit(long); 75 76 __HELENOS_DECLS_END; 77 77 78 78 #endif
Note:
See TracChangeset
for help on using the changeset viewer.