-
- Downloads
video: do threading via composition not inheritance
Rationale: it's easier to reason about the thread lifecycle. The new ThreadLoop class has the same API as the old SFLThread class, but wraps an std::thread instead of a pthread, exits on exceptional errors via an exception and calls its owner's methods via function handles (setup, process and cleanup) Refs #47343 Change-Id: Ie1eec81ec53cdc5bb6f00a89a916c5c8f9abeb4f
Showing
- daemon/src/Makefile.am 2 additions, 2 deletionsdaemon/src/Makefile.am
- daemon/src/threadloop.cpp 31 additions, 27 deletionsdaemon/src/threadloop.cpp
- daemon/src/threadloop.h 23 additions, 16 deletionsdaemon/src/threadloop.h
- daemon/src/video/check.h 1 addition, 1 deletiondaemon/src/video/check.h
- daemon/src/video/video_input.cpp 7 additions, 5 deletionsdaemon/src/video/video_input.cpp
- daemon/src/video/video_input.h 4 additions, 5 deletionsdaemon/src/video/video_input.h
- daemon/src/video/video_mixer.h 0 additions, 1 deletiondaemon/src/video/video_mixer.h
- daemon/src/video/video_receive_thread.cpp 14 additions, 6 deletionsdaemon/src/video/video_receive_thread.cpp
- daemon/src/video/video_receive_thread.h 6 additions, 3 deletionsdaemon/src/video/video_receive_thread.h
- daemon/src/video/video_rtp_session.cpp 1 addition, 1 deletiondaemon/src/video/video_rtp_session.cpp
Please register or sign in to comment