Changes in uspace/lib/c/include/fibril.h [4805495:bd41ac52] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/fibril.h
r4805495 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 38 #include <types/common.h> 39 39 #include <time.h> 40 40 #include <_bits/__noreturn.h> 41 #include <ipc/common.h> 41 42 42 43 typedef struct fibril fibril_t; … … 48 49 typedef fibril_t *fid_t; 49 50 50 #ifndef __cplusplus51 51 /** Fibril-local variable specifier */ 52 52 #define fibril_local __thread 53 #endif 53 54 #define FIBRIL_DFLT_STK_SIZE 0 54 55 55 56 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 70 75 extern void fibril_start(fid_t); 71 76 extern __noreturn void fibril_exit(long);
Note:
See TracChangeset
for help on using the changeset viewer.