rtapi_task_wait(3rtapi)
π€ rtapi_task_wait β the "bestie, take a nap till next period" function (from the rtapi manual, section 3) β¨
okay so picture this: you're a periodic realtime task, you've done your little chores for this cycle, and now you just... vibe until the next one. that's the whole gig. π
β¨ SYNTAX β¨
void rtapi_task_wait()
no args. no return. just vibes. π
πΈ DESCRIPTION πΈ
rtapi_task_wait suspends execution of the current task until the next period. that's it, that's the function. π¦
the catch?? the task MUST be periodic. like, that's not optional, that's the whole personality. if it's not periodic, the result is undefined β and bestie we do NOT do undefined, that's giving chaos demon energy ππ
π REALTIME CONSIDERATIONS π
call this only from within a periodic realtime task. fr fr. no exceptions, no sneaky little calls from somewhere else, iykyk. π₯
π«Ά RETURN VALUE π«Ά
None. nothing. zero. it returns nothing because it doesn't need to, main character behaviour honestly. β¨
π SEE ALSO π
go read those next, bestie, they're the sibling functions and they ate π
okay that's the whole page!! this was from the LinuxCNC Documentation, dated 2006-10-12, and the source is rtapi_task_wait(3rtapi) β yes the date is older than most of us and she's still serving π
π mwah, go write some realtime code responsibly, love u, bye!! π§π
π¦ where this page comes from
- debian bookworm: linuxcnc-uspace-dev 2.9.0~pre1+git20230208.f1270d6ed7-1+deb12u2 Β· GFDL-1.1-or-later
- debian trixie: linuxcnc-uspace-dev 1:2.9.4-2+deb13u1 Β· GFDL-1.1-or-later
- ubuntu questing: linuxcnc-uspace-dev 1:2.9.4-2ubuntu2
- ubuntu resolute: linuxcnc-uspace-dev 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace-dev 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms