Changeset 83789ea2 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2023-02-09T16:12:24Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c0b54c9
- Parents:
- ba25c4b
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2022-08-16 17:52:15)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-09 16:12:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
rba25c4b r83789ea2 360 360 thread->state = Entering; 361 361 362 timeout_initialize(&thread->sleep_timeout);363 362 thread->sleep_interruptible = false; 364 363 thread->sleep_composable = false; 365 364 thread->sleep_queue = NULL; 366 thread->timeout_pending = false;367 365 368 366 thread->in_copy_from_uspace = false; … … 500 498 } 501 499 502 restart:503 500 irq_spinlock_lock(&THREAD->lock, true); 504 if (THREAD->timeout_pending) {505 /* Busy waiting for timeouts in progress */506 irq_spinlock_unlock(&THREAD->lock, true);507 goto restart;508 }509 510 501 THREAD->state = Exiting; 511 502 irq_spinlock_unlock(&THREAD->lock, true);
Note:
See TracChangeset
for help on using the changeset viewer.