Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: joepasquariello

Search: Search took 0.00 seconds.

  1. I think all of the current uses of yield() in the...

    I think all of the current uses of yield() in the Teensy cores are consistent with the purpose of yield() as stated in the comment in the Arduino core, to perform a cooperative task switch. If we...
  2. No, I mean yielding to the next task.

    No, I mean yielding to the next task.
  3. Yes, delayMicroseconds() should be used for very...

    Yes, delayMicroseconds() should be used for very short or very precise delays, otherwise use delay().
  4. Yes, that's exactly right. TeensyThreads is...

    Yes, that's exactly right. TeensyThreads is time-sliced preemptive, but if you set the time-slice to be very large, and always call threads.yield() before the time-slice expires, then it is...
  5. Thanks, @Manicksan. You're right that DMA and...

    Thanks, @Manicksan. You're right that DMA and interrupts provide other ways to avoid waiting. The question I'm asking is where calls to yield() would be useful if someone is using a cooperative RTOS....
  6. Use of yield() in Teensy Cores and Libraries

    The recent thread "Thoughts on Handling Complexity" led to a discussion of cooperative multi-tasking and the use of yield(). In Arduino, yield() is an empty function defined as "weak" to allow...
Results 1 to 6 of 6