Skip to content

Commit bfb57ec

Browse files
author
Chrono Law
committed
pool ifdef threads
1 parent a6795aa commit bfb57ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ngxpp/NgxPool.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ class NgxPool final : public NgxWrapper<ngx_pool_t>
188188
return p;
189189
}
190190

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

199200
return p;
200201
}
202+
#endif //NGX_THREADS
201203
public:
202204
ngx_file_t* file() const
203205
{

0 commit comments

Comments
 (0)