Thread initialization added
Also the main thread must now explicitly be initialized.
This commit is contained in:
parent
551bfb6f26
commit
621b66ab13
@ -313,7 +313,9 @@ int main(int argc, char** argv)
|
||||
|
||||
if (mxs_log_init(NULL, ".", MXS_LOG_TARGET_DEFAULT))
|
||||
{
|
||||
if (qc_setup(lib, QC_SQL_MODE_DEFAULT, NULL) && qc_process_init(QC_INIT_BOTH))
|
||||
if (qc_setup(lib, QC_SQL_MODE_DEFAULT, NULL) &&
|
||||
qc_process_init(QC_INIT_BOTH) &&
|
||||
qc_thread_init(QC_INIT_BOTH))
|
||||
{
|
||||
rc = run(input_name, expected_name);
|
||||
qc_process_end(QC_INIT_BOTH);
|
||||
|
@ -41,7 +41,9 @@ int main()
|
||||
|
||||
set_libdir(strdup("../qc_sqlite"));
|
||||
|
||||
if (qc_setup("qc_sqlite", QC_SQL_MODE_DEFAULT, NULL) && qc_process_init(QC_INIT_BOTH))
|
||||
if (qc_setup("qc_sqlite", QC_SQL_MODE_DEFAULT, NULL) &&
|
||||
qc_process_init(QC_INIT_BOTH) &&
|
||||
qc_thread_init(QC_INIT_BOTH))
|
||||
{
|
||||
const char s[] = "SELECT @@global.max_allowed_packet";
|
||||
|
||||
|
@ -133,13 +133,13 @@ int main(int argc, char* argv[])
|
||||
|
||||
if (qc_setup(QC_LIB, QC_SQL_MODE_DEFAULT, NULL))
|
||||
{
|
||||
if (qc_process_init(QC_INIT_BOTH))
|
||||
if (qc_process_init(QC_INIT_BOTH) && qc_thread_init(QC_INIT_BOTH))
|
||||
{
|
||||
rc = test();
|
||||
}
|
||||
else
|
||||
{
|
||||
cerr << "error: Could not perform process initialization for " << QC_LIB << "." << endl;
|
||||
cerr << "error: Could not perform process/thread initialization for " << QC_LIB << "." << endl;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user