Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does the "user_param->wait_destroy" field mean? #51

Closed
newamber opened this issue Mar 6, 2019 · 0 comments
Closed

What does the "user_param->wait_destroy" field mean? #51

newamber opened this issue Mar 6, 2019 · 0 comments

Comments

@newamber
Copy link

newamber commented Mar 6, 2019

int destroy_ctx(struct pingpong_context *ctx,
		struct perftest_parameters *user_param)
{
	int i, first, dereg_counter, rc;
	int test_result = 0;
	int num_of_qps = user_param->num_of_qps;

	if (user_param->wait_destroy) {
		printf(" Waiting %u seconds before releasing resources...\n",
		       user_param->wait_destroy);
		sleep(user_param->wait_destroy);
	}
        ......
}

The field has default value 0, and I want to know why should I wait for x seconds before destroy_ctx(). Does this have any special significance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant