Caffe2 - C++ API
A deep learning, cross platform ML framework
pthreadpool_impl.h
1 
17 #ifndef CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
18 #define CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
19 
20 #include "ThreadPoolCommon.h"
21 
22 
23 namespace caffe2 {
24 
25 class ThreadPool;
26 
27 } // namespace caffe2
28 
29 extern "C" {
30 
31 // Wrapper for the caffe2 threadpool for the usage of NNPACK
32 struct pthreadpool {
33  pthreadpool(caffe2::ThreadPool* pool) : pool_(pool) {}
34  caffe2::ThreadPool* pool_;
35 };
36 
37 } // extern "C"
38 
39 #endif // CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
Copyright (c) 2016-present, Facebook, Inc.