Changeset abf6c01 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2018-11-09T22:03:24Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 436a0a5
- Parents:
- ba9a150
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-08 17:00:46)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-09 22:03:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
rba9a150 rabf6c01 165 165 166 166 #ifdef CONFIG_FPU 167 thread->saved_fpu_context = slab_alloc(fpu_context_cache, kmflags); 167 thread->saved_fpu_context = slab_alloc(fpu_context_cache, 168 FRAME_ATOMIC | kmflags); 168 169 if (!thread->saved_fpu_context) 169 170 return ENOMEM; … … 338 339 thread_flags_t flags, const char *name) 339 340 { 340 thread_t *thread = (thread_t *) slab_alloc(thread_cache, 0);341 thread_t *thread = (thread_t *) slab_alloc(thread_cache, FRAME_ATOMIC); 341 342 if (!thread) 342 343 return NULL; … … 652 653 653 654 return waitq_sleep_timeout(&thread->join_wq, usec, flags, NULL); 655 656 // FIXME: join should deallocate the thread. 657 // Current code calls detach after join, that's contrary to how 658 // join is used in other threading APIs. 654 659 } 655 660
Note:
See TracChangeset
for help on using the changeset viewer.