Commit 35cbb419 authored by Matthieu Dorier's avatar Matthieu Dorier

changed visibility of pool constructor

parent ff876239
......@@ -180,17 +180,6 @@ class pool {
friend class task;
friend class thread;
/**
* @brief Private constructor used to build a pool
* out of an existing handle. m_borrowed is set to
* true so that the underlying handle is not freed
* when the pool object is destroyed.
*
* @param p existing ABT_pool handle. May be null.
*/
explicit pool(ABT_pool p)
: m_pool(p) {}
static void forward_work_unit(void* fp) {
auto f = static_cast<std::function<void(void)>*>(fp);
(*f)();
......@@ -206,6 +195,14 @@ class pool {
public:
/**
* @brief Constructor used to build a pool out of an existing handle.
*
* @param p existing ABT_pool handle. May be null.
*/
explicit pool(ABT_pool p)
: m_pool(p) {}
/**
* @brief Default constructor handles a null pool.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment