Changeset d5a89a3 in mainline for uspace/lib/c/include/fibril.h
- Timestamp:
- 2019-02-11T22:31:04Z (6 years ago)
- Children:
- aaf9789c
- Parents:
- e3272101 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/fibril.h
re3272101 rd5a89a3 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.