MCPcopy Create free account
hub / github.com/acl-dev/acl / thr_pool_create

Function thr_pool_create

lib_acl/samples/thread/thread_pool1/main.cpp:135–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135static 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
150typedef struct {
151 ACL_VSTREAM *fp;

Callers 1

mainFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…