Changeset a064d4f in mainline for kernel/generic/src/proc
- Timestamp:
- 2024-01-15T15:39:09Z (19 months ago)
- Branches:
- master
- Children:
- 0f4f1b2
- Parents:
- 5861b60
- Location:
- kernel/generic/src/proc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
r5861b60 ra064d4f 449 449 THREAD->kcycles += get_cycle() - THREAD->last_cycle; 450 450 451 /* 452 * On Sparc, this saves some extra userspace state that's not 453 * covered by context_save()/context_restore(). 454 */ 451 455 after_thread_ran_arch(); 452 456 -
kernel/generic/src/proc/thread.c
r5861b60 ra064d4f 685 685 686 686 /** Wait for another thread to exit. 687 * This function does not destroy the thread. Reference counting handles that.687 * After successful wait, the thread reference is destroyed. 688 688 * 689 689 * @param thread Thread to join on exit. … … 703 703 irq_spinlock_unlock(&thread->lock, true); 704 704 705 if (state == Exiting) { 706 return EOK; 707 } else { 708 return _waitq_sleep_timeout(&thread->join_wq, usec, flags); 709 } 705 errno_t rc = EOK; 706 707 if (state != Exiting) 708 rc = _waitq_sleep_timeout(&thread->join_wq, usec, flags); 709 710 if (rc == EOK) 711 thread_put(thread); 712 713 return rc; 710 714 } 711 715
Note:
See TracChangeset
for help on using the changeset viewer.