idleStreams
AF1 <AF1.atbmjz-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Thu, 3 Nov 2022 15:53:05 +0000
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
Hi. From what I can see, -idleStreams- is supposed to give the server some time to breathe when a task takes a bit longer so that streaming is not interrupted and such. Apparently, it's often used in loops (at the end of each iteration). How does it actually work? Does it pause the current task and execute tasks from some queue? If so, how many tasks from what queue would it complete before resuming the original task that called idlestreams? My case: if I have a task (not a loop) that consists of various sub tasks (retrieving tracks from db using SQLite query, filtering, sorting), should I use it? Is there some kind of guideline on when it makes sense to use it? Ex.: subtask1 ~16 secs -> subtask2 ~4 secs -> subtask3 ~5 secs. Should I call idlestreams after subtask*1* in this case or is it primarily intended for loops/iterations? The exec time of these subtasks approx. doubles when the number of tracks requested is doubled. I'm just curious. Thanks. For '*bug reports*' (https://github.com/AF-1/), *FAQ* (if available) and more detailed information about my plugins, please see the '*GitHub*' (https://github.com/AF-1/) page or the *first post* in the support thread for a plugin. Please post *bug reports* for my plugins *only* on '*GitHub*' (https://github.com/AF-1/). Thank you. ------------------------------------------------------------------------ AF1's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=117004