| 2305 | |
| 2306 | |
| 2307 | int |
| 2308 | rpl_parallel_thread_pool::init(uint32 size) |
| 2309 | { |
| 2310 | threads= NULL; |
| 2311 | free_list= NULL; |
| 2312 | count= 0; |
| 2313 | busy= false; |
| 2314 | |
| 2315 | mysql_mutex_init(key_LOCK_rpl_thread_pool, &LOCK_rpl_thread_pool, |
| 2316 | MY_MUTEX_INIT_SLOW); |
| 2317 | mysql_cond_init(key_COND_rpl_thread_pool, &COND_rpl_thread_pool, NULL); |
| 2318 | inited= true; |
| 2319 | |
| 2320 | /* |
| 2321 | The pool is initially empty. Threads will be spawned when a slave SQL |
| 2322 | thread is started. |
| 2323 | */ |
| 2324 | |
| 2325 | return 0; |
| 2326 | } |
| 2327 | |
| 2328 | |
| 2329 | void |
no outgoing calls
no test coverage detected