Changeset eceff5f in mainline
- Timestamp:
- 2013-03-12T20:47:40Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0e1edf1, 2b95d13
- Parents:
- 623bab8f
- Location:
- uspace/lib/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r623bab8f receff5f 350 350 static async_client_conn_t client_connection = default_client_connection; 351 351 static async_interrupt_handler_t interrupt_received = default_interrupt_received; 352 static size_t interrupt_handler_stksz = (size_t) -1;352 static size_t interrupt_handler_stksz = FIBRIL_DFLT_STK_SIZE; 353 353 354 354 /** Setter for client_connection function pointer. … … 375 375 /** Set the stack size for the interrupt handler notification fibrils. 376 376 * 377 * @param size Stack size . Use -1 to use the system default stack size.377 * @param size Stack size in bytes. 378 378 */ 379 379 void async_set_interrupt_handler_stack_size(size_t size) -
uspace/lib/c/generic/fibril.c
r623bab8f receff5f 256 256 * @param func Implementing function of the new fibril. 257 257 * @param arg Argument to pass to func. 258 * @param stksz Stack size , -1 for the system default stack size.258 * @param stksz Stack size in bytes. 259 259 * 260 260 * @return 0 on failure or TLS of the new fibril. … … 269 269 return 0; 270 270 271 size_t stack_size = (stksz == (size_t) -1) ? stack_size_get() : stksz; 271 size_t stack_size = (stksz == FIBRIL_DFLT_STK_SIZE) ? 272 stack_size_get() : stksz; 272 273 fibril->stack = as_area_create((void *) -1, stack_size, 273 274 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE | AS_AREA_GUARD | -
uspace/lib/c/include/fibril.h
r623bab8f receff5f 86 86 extern void context_restore(context_t *ctx) __attribute__((noreturn)); 87 87 88 #define FIBRIL_DFLT_STK_SIZE 0 89 88 90 #define fibril_create(func, arg) \ 89 fibril_create_generic((func), (arg), (size_t) -1)91 fibril_create_generic((func), (arg), FIBRIL_DFLT_STK_SIZE) 90 92 extern fid_t fibril_create_generic(int (*func)(void *), void *arg, size_t); 91 93 extern void fibril_destroy(fid_t fid);
Note:
See TracChangeset
for help on using the changeset viewer.