diff --git a/ngxpp/NgxPool.hpp b/ngxpp/NgxPool.hpp index f4def5e..9b1c27b 100644 --- a/ngxpp/NgxPool.hpp +++ b/ngxpp/NgxPool.hpp @@ -188,6 +188,7 @@ class NgxPool final : public NgxWrapper return p; } +#if (NGX_THREADS) public: template ngx_thread_task_t* thread_task() const @@ -198,6 +199,7 @@ class NgxPool final : public NgxWrapper return p; } +#endif //NGX_THREADS public: ngx_file_t* file() const {