16 lines
252 B
C++
16 lines
252 B
C++
|
#pragma once
|
||
|
#include "exportapi.hpp"
|
||
|
|
||
|
#include <memory>
|
||
|
|
||
|
class POOLAPI ProcessPool {
|
||
|
/* 进程数量 */
|
||
|
int m_num;
|
||
|
|
||
|
struct systemapi;
|
||
|
std::shared_ptr<systemapi> Impl;
|
||
|
|
||
|
public:
|
||
|
ProcessPool(int num);
|
||
|
void exec() const;
|
||
|
};
|