MCPcopy Create free account
hub / github.com/MariaDB/server / init

Method init

sql/rpl_parallel.cc:2307–2326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2305
2306
2307int
2308rpl_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
2329void

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected