- Thread *thread;
- int ret;
- DBG();
- thread = new Thread(t, start_routine, arg);
- ret = model->add_thread(thread);
- DEBUG("create thread %d\n", id_to_int(thrd_to_id(*t)));
+ createModelIfNotExist();
+ struct thread_params params = { start_routine, arg };