Changeset 1871118 in mainline for kernel/generic/src/ipc/kbox.c
- Timestamp:
- 2023-02-10T22:59:11Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 11d2c983
- Parents:
- daadfa6
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-10 22:53:12)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-10 22:59:11)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/kbox.c
rdaadfa6 r1871118 90 90 LOG("Join kb.thread."); 91 91 thread_join(TASK->kb.thread); 92 thread_ detach(TASK->kb.thread);92 thread_put(TASK->kb.thread); 93 93 LOG("...join done."); 94 94 TASK->kb.thread = NULL; … … 136 136 /* Only detach kbox thread unless already terminating. */ 137 137 if (TASK->kb.finished == false) { 138 /* Detachkbox thread so it gets freed from memory. */139 thread_ detach(TASK->kb.thread);138 /* Release kbox thread so it gets freed from memory. */ 139 thread_put(TASK->kb.thread); 140 140 TASK->kb.thread = NULL; 141 141 } … … 247 247 } 248 248 249 task->kb.thread = kb_thread;249 task->kb.thread = thread_ref(kb_thread); 250 250 thread_ready(kb_thread); 251 251 }
Note:
See TracChangeset
for help on using the changeset viewer.