Shaka Packager SDK
Loading...
Searching...
No Matches
single_thread_job_manager.cc
1// Copyright 2020 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6
7#include <packager/app/single_thread_job_manager.h>
8
9#include <memory>
10#include <utility>
11
12#include <packager/app/job_manager.h>
13#include <packager/media/chunking/sync_point_queue.h>
14#include <packager/status.h>
15
16namespace shaka {
17namespace media {
18
19SingleThreadJobManager::SingleThreadJobManager(
20 std::unique_ptr<SyncPointQueue> sync_points)
21 : JobManager(std::move(sync_points)) {}
22
23Status SingleThreadJobManager::RunJobs() {
24 Status status;
25
26 for (auto& job : jobs_)
27 status.Update(job->Run());
28
29 return status;
30}
31
32} // namespace media
33} // namespace shaka
All the methods that are virtual are virtual for mocking.