Skip to content

Commit

Permalink
pool ifdef threads
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrono Law committed Nov 16, 2015
1 parent a6795aa commit bfb57ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ngxpp/NgxPool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ class NgxPool final : public NgxWrapper<ngx_pool_t>
return p;
}

#if (NGX_THREADS)
public:
template<typename T>
ngx_thread_task_t* thread_task() const
Expand All @@ -198,6 +199,7 @@ class NgxPool final : public NgxWrapper<ngx_pool_t>

return p;
}
#endif //NGX_THREADS
public:
ngx_file_t* file() const
{
Expand Down

0 comments on commit bfb57ec

Please sign in to comment.