Commit 02d75f62 authored by Ben Walker's avatar Ben Walker Committed by Jim Harris
Browse files

thread: Move threading abstraction code out of util



This makes more sense as a first class library.

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


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarMadhu Pai <mpai@netapp.com>
parent 9f697e0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ C_SRCS := iscsi_tgt.c

SPDK_LIB_LIST = event_bdev event_copy event_iscsi event_net event_scsi
SPDK_LIB_LIST += jsonrpc json rpc bdev_rpc bdev iscsi scsi copy trace conf
SPDK_LIB_LIST += util log log_rpc event app_rpc
SPDK_LIB_LIST += thread util log log_rpc event app_rpc

ifeq ($(OS),Linux)
SPDK_LIB_LIST += event_nbd nbd
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ APP = nvmf_tgt
C_SRCS := nvmf_main.c

SPDK_LIB_LIST = event_bdev event_copy event_nvmf
SPDK_LIB_LIST += nvmf event log trace conf util bdev copy rpc jsonrpc json
SPDK_LIB_LIST += nvmf event log trace conf thread util bdev copy rpc jsonrpc json
SPDK_LIB_LIST += app_rpc log_rpc bdev_rpc

ifeq ($(OS),Linux)
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ APP = spdk_tgt
C_SRCS := spdk_tgt.c

SPDK_LIB_LIST = event_bdev event_copy event_iscsi event_net event_scsi event_nvmf
SPDK_LIB_LIST += nvmf event log trace conf util bdev iscsi scsi copy rpc jsonrpc json
SPDK_LIB_LIST += nvmf event log trace conf thread util bdev iscsi scsi copy rpc jsonrpc json
SPDK_LIB_LIST += app_rpc log_rpc bdev_rpc

ifeq ($(OS),Linux)
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ C_SRCS := vhost.c

SPDK_LIB_LIST = event_bdev event_copy event_net event_scsi event_vhost
SPDK_LIB_LIST += jsonrpc json rpc bdev_rpc bdev scsi copy trace conf
SPDK_LIB_LIST += util log log_rpc event app_rpc
SPDK_LIB_LIST += thread util log log_rpc event app_rpc
SPDK_LIB_LIST += vhost rte_vhost event_nbd nbd

LIBS += $(BLOCKDEV_MODULES_LINKER_ARGS) \
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ fundamental libraries in SPDK, for instance, don't do any message passing on
their own and instead enumerate rules about when functions may be called in
their documentation (e.g. @ref nvme). Most libraries, however, depend on SPDK's
[io_channel](http://www.spdk.io/doc/io__channel_8h.html) infrastructure,
located in `libspdk_util.a`. The io_channel infrastructure is an abstraction
located in `libspdk_thread.a`. The io_channel infrastructure is an abstraction
around a basic message passing framework and defines a few key abstractions.

First, spdk_thread is an abstraction for a thread of execution and
Loading