Shaka Packager SDK
Loading...
Searching...
No Matches
single_thread_job_manager.h
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#ifndef PACKAGER_APP_SINGLE_THREAD_JOB_MANAGER_H_
8#define PACKAGER_APP_SINGLE_THREAD_JOB_MANAGER_H_
9
10#include <memory>
11
12#include <packager/app/job_manager.h>
13#include <packager/status.h>
14
15namespace shaka {
16namespace media {
17
18// A subclass of JobManager that runs all the jobs in a single thread.
20 public:
21 // @param sync_points is an optional SyncPointQueue used to synchronize and
22 // align cue points. JobManager cancels @a sync_points when any job
23 // fails or is cancelled. It can be NULL.
24 explicit SingleThreadJobManager(std::unique_ptr<SyncPointQueue> sync_points);
25
26 // Run all registered jobs serially in this thread.
27 Status RunJobs() override;
28};
29
30} // namespace media
31} // namespace shaka
32
33#endif // PACKAGER_APP_SINGLE_THREAD_JOB_MANAGER_H_
All the methods that are virtual are virtual for mocking.