create task_mediator class for capture thread and send frame thread mediation
modify capture_worker and send_frame_worker to use task_mediator