提交 120a3272 编写于 作者: D dolphin8

add threadpool to namespace paddle_mobile

上级 7e6c912d
......@@ -24,6 +24,7 @@ limitations under the License. */
#include <thread>
#include <vector>
namespace paddle_mobile {
class ThreadPool {
public:
static ThreadPool& getThreadPool();
......@@ -122,3 +123,4 @@ ThreadPool& ThreadPool::getThreadPool() {
int ThreadPool::getThreadPoolThreadId() {
return getThreadPool().getTid(std::this_thread::get_id());
}
} // namespace paddle_mobile
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册