You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
For a more dynamic system (e.g. for the camera-streamer RSTP rewrite) we'd liked to be able to dynamically spawn threads for each client and then easily exit the threads (from within the thread context) when the client disconnects
Describe the solution you'd like
Update the thread callback function signature to return a boolean value indicating whether to stop the thread or not.
Describe alternatives you've considered
Supporting multiple callback signatures and using a std::variant in the task class (one for void return that cannot be stopped and one for a bool return that can be stopped)
Providing a different function that the thread function could call (via thread object context provided in the callback function)
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context