kaldi-thread.cc 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. // util/kaldi-thread.cc
  2. // Copyright 2012 Johns Hopkins University (Author: Daniel Povey)
  3. // Frantisek Skala
  4. // See ../../COPYING for clarification regarding multiple authors
  5. //
  6. // Licensed under the Apache License, Version 2.0 (the "License");
  7. // you may not use this file except in compliance with the License.
  8. // You may obtain a copy of the License at
  9. //
  10. // http://www.apache.org/licenses/LICENSE-2.0
  11. //
  12. // THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  13. // KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  14. // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  15. // MERCHANTABLITY OR NON-INFRINGEMENT.
  16. // See the Apache 2 License for the specific language governing permissions and
  17. // limitations under the License.
  18. #include "base/kaldi-common.h"
  19. #include "util/kaldi-thread.h"
  20. namespace kaldi {
  21. int32 g_num_threads = 8; // Initialize this global variable.
  22. MultiThreadable::~MultiThreadable() {
  23. // default implementation does nothing
  24. }
  25. } // end namespace kaldi