FS-10167: Fixed bug in windows test_thread_pools test related to the thread pool itself and ks_q cleanup

This commit is contained in:
Shane Bryldt
2017-03-29 17:22:17 -06:00
parent 7fd6a2c119
commit b41a847b9d
9 changed files with 1166 additions and 1200 deletions

View File

@@ -16,7 +16,7 @@ static void *test1_thread(ks_thread_t *thread, void *data)
{
struct x *mydata = (struct x *) data;
ks_log(KS_LOG_DEBUG, "Thread %d\n", mydata->i);
//ks_log(KS_LOG_DEBUG, "Thread %d\n", mydata->i);
ks_sleep(100000);
ks_pool_free(mydata->pool, &mydata);
return NULL;
@@ -37,6 +37,7 @@ static int test1()
struct x *data = ks_pool_alloc(pool, sizeof(*data));
data->i = i;
data->pool = pool;
ks_sleep(1);
ks_thread_pool_add_job(tp, test1_thread, data);
}