| 133 | } |
| 134 | |
| 135 | static acl_pthread_pool_t *thr_pool_create(int threads, int timeout) |
| 136 | { |
| 137 | acl_pthread_pool_attr_t attr; |
| 138 | acl_pthread_pool_t *thr_pool; |
| 139 | |
| 140 | acl_pthread_pool_attr_init(&attr); |
| 141 | acl_pthread_pool_attr_set_threads_limit(&attr, threads); |
| 142 | acl_pthread_pool_attr_set_idle_timeout(&attr, timeout); |
| 143 | |
| 144 | /* ������פ���߳̾�� */ |
| 145 | thr_pool = acl_pthread_pool_create(&attr); |
| 146 | assert(thr_pool); |
| 147 | return (thr_pool); |
| 148 | } |
| 149 | |
| 150 | typedef struct { |
| 151 | ACL_VSTREAM *fp; |
no test coverage detected
searching dependent graphs…