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