Lines Matching refs:args
75 struct thread_args *args = arguments;
78 sprintf(name, "lxc-test-concurrent-%d", args->thread_id);
80 args->return_code = 1;
92 if (strcmp(args->mode, "create") == 0) {
99 } else if(strcmp(args->mode, "start") == 0) {
112 } else if(strcmp(args->mode, "stop") == 0) {
123 } else if(strcmp(args->mode, "destroy") == 0) {
131 args->return_code = 0;
150 struct thread_args *args;
201 args = malloc(sizeof(*args) * nthreads);
202 if (threads == NULL || args == NULL) {
223 args[j].thread_id = j;
224 args[j].mode = modes[i];
227 if (pthread_create(&threads[j], &attr, concurrent, (void *) &args[j]) != 0) {
232 do_function(&args[j]);
243 if (args[j].return_code) {
244 fprintf(stderr, "thread returned error %d\n", args[j].return_code);
251 free(args);