Commit 9cba82b9 authored by Ben Walker's avatar Ben Walker Committed by Darek Stojaczyk
Browse files

thread: Rename spdk_free_thread to spdk_thread_exit



This name more closely resembles pthread_exit, which is a
closer analogy to how the new threading library works.

Change-Id: I68b04509f3ff8e94b8688804a7e5661155a3ecd1
Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/c/440597


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
parent b1c79d72
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ spdk_fio_cleanup_thread(struct spdk_fio_thread *fio_thread)

	spdk_set_thread(fio_thread->thread);

	spdk_free_thread(fio_thread->thread);
	spdk_thread_exit(fio_thread->thread);
	free(fio_thread->iocq);
	free(fio_thread);
}
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ struct spdk_thread *spdk_thread_create(const char *name);
 * All I/O channel references associated with the thread must be released using
 * spdk_put_io_channel() prior to calling this function.
 */
void spdk_free_thread(struct spdk_thread *thread);
void spdk_thread_exit(struct spdk_thread *thread);

/**
 * Perform one iteration worth of processing on the thread. This includes
+1 −1
Original line number Diff line number Diff line
@@ -355,7 +355,7 @@ _spdk_reactor_run(void *arg)

	spdk_set_thread(thread);
	_spdk_reactor_context_switch_monitor_stop(reactor, NULL);
	spdk_free_thread(thread);
	spdk_thread_exit(thread);
	return 0;
}

+1 −1
Original line number Diff line number Diff line
@@ -234,7 +234,7 @@ spdk_set_thread(struct spdk_thread *thread)
}

void
spdk_free_thread(struct spdk_thread *thread)
spdk_thread_exit(struct spdk_thread *thread)
{
	struct spdk_io_channel *ch;

+1 −1
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ free_threads(void)

	for (i = 0; i < g_ut_num_threads; i++) {
		set_thread(i);
		spdk_free_thread(g_ut_threads[i].thread);
		spdk_thread_exit(g_ut_threads[i].thread);
		g_ut_threads[i].thread = NULL;
	}

Loading