This is automatic generated document for things in Swow\ThreadManager class
Class ThreadManager
Manages a set of worker threads.
The manager starts workers and controls their life cycle. It restarts workers that exit while the manager runs. On POSIX, SIGUSR1 starts a graceful reload. On Windows, SIGBREAK starts it. SIGTERM and SIGINT start a graceful stop.
Methods
Method __construct
publicfunction__construct(int$workerCount)
Paramint$workerCount Number of workers. 0 selects the CPU count.
Method getWorkerCount
publicfunctiongetWorkerCount():int
Method onWorkerExit
publicfunctiononWorkerExit(Closure(int $workerId, int $threadId, int $exitStatus): void$callback):static