doc ru, printf() before assert in containers
This commit is contained in:
@@ -33,30 +33,50 @@ class PIThread;
|
||||
class PIP_EXPORT PIThreadPoolLoop {
|
||||
public:
|
||||
|
||||
//! \~english
|
||||
//! Contructs thread pool with threads count "thread_cnt".
|
||||
//! If "thread_cnt" = -1 then system processors count used
|
||||
//! \~russian
|
||||
//! Создает пул из "thread_cnt" потоков. Если "thread_cnt" = -1
|
||||
//! то используется количество процессоров системы
|
||||
PIThreadPoolLoop(int thread_cnt = -1);
|
||||
|
||||
virtual ~PIThreadPoolLoop();
|
||||
|
||||
//! Set threads function to "f" with format [](int){...}
|
||||
//! \~english Set threads function to "f" with format [ ](int){ ... }
|
||||
//! \~russian Устанавливает функцию потоков на "f" в формате [ ](int){ ... }
|
||||
void setFunction(std::function<void(int)> f);
|
||||
|
||||
//! Wait for all threads stop
|
||||
//! \~english Wait for all threads stop
|
||||
//! \~russian Ожидает завершения всех потоков
|
||||
void wait();
|
||||
|
||||
//! \~english
|
||||
//! Start functions execution with integer argument range
|
||||
//! from "index_start" to "index_start + index_count - 1"
|
||||
//! \~russian
|
||||
//! Начинает исполнение потоков с аргументами по диапазону
|
||||
//! от "index_start" до "index_start + index_count - 1"
|
||||
void start(int index_start, int index_count);
|
||||
|
||||
//! \~english
|
||||
//! Start functions execution with integer argument range
|
||||
//! from "index_start" to "index_start + index_count - 1"
|
||||
//! and wait for finish
|
||||
//! \~russian
|
||||
//! Начинает исполнение потоков с аргументами по диапазону
|
||||
//! от "index_start" до "index_start + index_count - 1"
|
||||
//! и ожидает завершения
|
||||
void exec(int index_start, int index_count);
|
||||
|
||||
//! \~english
|
||||
//! Start functions "f" execution with integer argument range
|
||||
//! from "index_start" to "index_start + index_count - 1"
|
||||
//! and wait for finish
|
||||
//! \~russian
|
||||
//! Начинает исполнение потоками функции "f" с аргументами по диапазону
|
||||
//! от "index_start" до "index_start + index_count - 1"
|
||||
//! и ожидает завершения
|
||||
void exec(int index_start, int index_count, std::function<void(int)> f);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user