MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / term_thread

Method term_thread

handlersocket/database.cpp:345–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void
346dbcontext::term_thread()
347{
348 DBG_THR(fprintf(stderr, "HNDSOCK thread end %p\n", thd));
349 close_tables_if();
350 my_pthread_setspecific_ptr(THR_THD, 0);
351 {
352 #if MYSQL_VERSION_ID >= 50600
353 remove_global_thread(thd);
354 #endif
355
356 pthread_mutex_lock(&LOCK_thread_count);
357 #if MYSQL_VERSION_ID < 50600
358 --thread_count;
359 #endif
360 delete thd;
361 thd = 0;
362 pthread_mutex_unlock(&LOCK_thread_count);
363 my_thread_end();
364 }
365}
366
367bool
368dbcontext::check_alive()

Callers 1

~thr_initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected