@ -11,16 +11,15 @@ cpputil
#### threadpool
Создадим пул с 4 потоками
```C++
``` cpp
threadpool pool(4);
```
Добавим задачу в виде глобальной функции с параметрами
```cpp
int add(int x, int y)
{
return x + y;
}
pool.add_task(&add, 1, 2);
или член класса
The note is not visible to the blocked user.