libUPnP  1.6.17
Data Fields
THREADPOOLATTR Struct Reference

#include <ThreadPool.h>

Data Fields

int minThreads
int maxThreads
size_t stackSize
int maxIdleTime
int jobsPerThread
int maxJobsTotal
int starvationTime
PolicyType schedPolicy

Detailed Description

Attributes for thread pool. Used to set and change parameters of thread pool.


Field Documentation

Jobs per thread to maintain.

Referenced by AddWorker(), TPAttrInit(), and TPAttrSetJobsPerThread().

This is the maximum time a thread will remain idle before dying (in milliseconds).

Referenced by BumpPriority(), TPAttrInit(), TPAttrSetIdleTime(), and WorkerThread().

Maximum number of jobs that can be queued totally.

Referenced by ThreadPoolAdd(), TPAttrInit(), and TPAttrSetMaxJobsTotal().

ThreadPool will never have more than this number of threads.

Referenced by CreateWorker(), ThreadPoolAddPersistent(), TPAttrInit(), TPAttrSetMaxThreads(), and WorkerThread().

ThreadPool will always maintain at least this many threads.

Referenced by ThreadPoolInit(), ThreadPoolSetAttr(), TPAttrInit(), TPAttrSetMinThreads(), and WorkerThread().

scheduling policy to use.

Referenced by ThreadPoolInit(), ThreadPoolSetAttr(), TPAttrInit(), and TPAttrSetSchedPolicy().

This is the minimum stack size allocated for each thread.

Referenced by CreateWorker(), TPAttrInit(), and TPAttrSetStackSize().

the time a low priority or med priority job waits before getting bumped up a priority (in milliseconds).

Referenced by BumpPriority(), TPAttrInit(), and TPAttrSetStarvationTime().


The documentation for this struct was generated from the following file: