Files
pytorch/caffe2/utils/threadpool/pthreadpool_impl.h
Orion Reblitz-Richardson 1d5780d42c Remove Apache headers from source.
* LICENSE file contains details, so removing from individual source files.
2018-03-27 13:10:18 -07:00

24 lines
424 B
C++

#ifndef CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
#define CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
#include "ThreadPoolCommon.h"
namespace caffe2 {
class ThreadPool;
} // namespace caffe2
extern "C" {
// Wrapper for the caffe2 threadpool for the usage of NNPACK
struct pthreadpool {
pthreadpool(caffe2::ThreadPool* pool) : pool_(pool) {}
caffe2::ThreadPool* pool_;
};
} // extern "C"
#endif // CAFFE2_UTILS_PTHREADPOOL_IMPL_H_