I missed something about abort
I missed something about abort
Posted Aug 24, 2025 18:02 UTC (Sun) by ssmith32 (subscriber, #72404)In reply to: I missed something about abort by ssmith32
Parent article: Bringing restartable sequences out of the niche
I assume the answer is "possibly", in which case the code loops infinitely. But wondering if I'm misunderstanding.
Posted Aug 24, 2025 18:42 UTC (Sun)
by corbet (editor, #1)
[Link]
Yes, a system call can result in those things. As an extreme example, think of a read() call that has to wait for data to be brought in from disk; that will result in the calling thread losing access to the CPU indefinitely. But almost any system call can result in preemption and/or migration of the calling thread.
I missed something about abort
