2022-08-26 15:44:59 +00:00
|
|
|
// Copyright 2014 Google LLC. All rights reserved.
|
2014-05-09 01:23:54 +00:00
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
|
|
|
#ifndef APP_LIBCRYPTO_THREADING_H_
|
|
|
|
#define APP_LIBCRYPTO_THREADING_H_
|
|
|
|
|
2014-10-01 22:10:21 +00:00
|
|
|
#include "packager/base/macros.h"
|
2014-05-09 01:23:54 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-05-09 01:23:54 +00:00
|
|
|
namespace media {
|
|
|
|
|
|
|
|
/// Convenience class which initializes and terminates libcrypto threading.
|
|
|
|
class LibcryptoThreading {
|
|
|
|
public:
|
|
|
|
LibcryptoThreading();
|
|
|
|
~LibcryptoThreading();
|
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(LibcryptoThreading);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace media
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|
2014-05-09 01:23:54 +00:00
|
|
|
|
|
|
|
#endif // APP_LIBCRYPTO_THREADING_H_
|