1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

added missing mutex_init/destroy for ssl test conc-102

This commit is contained in:
Georg Richter
2015-12-15 19:19:08 +01:00
parent 57cc05ace9
commit 518a30675c

View File

@@ -646,6 +646,7 @@ static int test_conc_102(MYSQL *mysql)
check_mysql_rc(rc, mysql); check_mysql_rc(rc, mysql);
rc= mysql_query(mysql, "INSERT INTO t_conc102 VALUES (0)"); rc= mysql_query(mysql, "INSERT INTO t_conc102 VALUES (0)");
check_mysql_rc(rc, mysql); check_mysql_rc(rc, mysql);
pthread_mutex_init(&LOCK_test, NULL);
for (i=0; i < 50; i++) for (i=0; i < 50; i++)
{ {
@@ -665,6 +666,7 @@ static int test_conc_102(MYSQL *mysql)
WaitForSingleObject(hthreads[i], INFINITE); WaitForSingleObject(hthreads[i], INFINITE);
#endif #endif
} }
pthread_mutex_destroy(&LOCK_test);
rc= mysql_query(mysql, "SELECT a FROM t_conc102"); rc= mysql_query(mysql, "SELECT a FROM t_conc102");
check_mysql_rc(rc, mysql); check_mysql_rc(rc, mysql);
res= mysql_store_result(mysql); res= mysql_store_result(mysql);