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

Method callback_prolog

tpool/tpool_win.cc:52–65  ·  view source on GitHub ↗

This needs to be called before every IO or simple task callback.*/

Source from the content-addressed store, hash-verified

50 }
51 /** This needs to be called before every IO or simple task callback.*/
52 void callback_prolog(thread_pool_win* pool)
53 {
54 assert(pool);
55 assert(!m_pool || (m_pool == pool));
56 if (m_pool)
57 {
58 // TLS data already initialized.
59 return;
60 }
61 m_pool = pool;
62 m_pool->m_thread_count++;
63 // Call the thread init function.
64 m_pool->m_worker_init_callback();
65 }
66 };
67
68 static thread_local struct tls_data tls_data;

Callers 3

timer_callbackMethod · 0.80
task_callbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected