47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
* \brief Returns a new thread pool with one thread for each core in the system.
*
* \warning If for some reason the number of cores in the system could not be
* determined, the pool will only have one thread!
*
* \return A new thread pool with one thread for each core in the system
*/
+ threadPool;
/**
* \brief Returns a new thread pool with the specified number of threads.
*
* \warning If for some reason the number of cores in the system could not be
* determined, the pool will only have one thread!
*
* \param size The number of threads for the pool
* \return A new thread pool with the specified number of threads
*/
+ threadPoolWithSize: (size_t)size;
/**
* \brief Initializes an already allocated OFThreadPool with one thread for
* each core in the system.
*
* \warning If for some reason the number of cores in the system could not be
* determined, the pool will only have one thread!
|
|
|
|
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
* \brief Returns a new thread pool with one thread for each core in the system.
*
* \warning If for some reason the number of cores in the system could not be
* determined, the pool will only have one thread!
*
* \return A new thread pool with one thread for each core in the system
*/
+ (instancetype)threadPool;
/**
* \brief Returns a new thread pool with the specified number of threads.
*
* \warning If for some reason the number of cores in the system could not be
* determined, the pool will only have one thread!
*
* \param size The number of threads for the pool
* \return A new thread pool with the specified number of threads
*/
+ (instancetype)threadPoolWithSize: (size_t)size;
/**
* \brief Initializes an already allocated OFThreadPool with one thread for
* each core in the system.
*
* \warning If for some reason the number of cores in the system could not be
* determined, the pool will only have one thread!
|