Changeset 1b20da0 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
rdf6ded8 r1b20da0 546 546 547 547 /** Interrupts an existing thread so that it may exit as soon as possible. 548 * 549 * Threads that are blocked waiting for a synchronization primitive 548 * 549 * Threads that are blocked waiting for a synchronization primitive 550 550 * are woken up with a return code of EINTR if the 551 551 * blocking call was interruptable. See waitq_sleep_timeout(). 552 * 552 * 553 553 * The caller must guarantee the thread object is valid during the entire 554 554 * function, eg by holding the threads_lock lock. 555 * 555 * 556 556 * Interrupted threads automatically exit when returning back to user space. 557 * 557 * 558 558 * @param thread A valid thread object. The caller must guarantee it 559 559 * will remain valid until thread_interrupt() exits. … … 575 575 576 576 /** Returns true if the thread was interrupted. 577 * 577 * 578 578 * @param thread A valid thread object. User must guarantee it will 579 579 * be alive during the entire call. … … 693 693 * @param usec Number of microseconds to sleep. 694 694 * 695 */ 695 */ 696 696 void thread_usleep(uint32_t usec) 697 697 {
Note:
See TracChangeset
for help on using the changeset viewer.