Add multithreading helpers
Add an abstraction for mutexts and threads that handles both pthread api and native win32 api Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -216,6 +216,10 @@ AM_CONDITIONAL([HAVE_LINUX_ISER], [test $libiscsi_cv_HAVE_LINUX_ISER = yes])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <rdma/rdma_cma.h>]], [[return RDMA_OPTION_ID_ACK_TIMEOUT;]])],[AC_DEFINE([HAVE_RDMA_ACK_TIMEOUT],[1],[Define to 1 if you have RDMA ack timeout support])],[])
|
||||
|
||||
# check for stdatomic.h
|
||||
dnl Check for stdatomic.h
|
||||
AC_CHECK_HEADERS([stdatomic.h])
|
||||
|
||||
# check for pthread
|
||||
AC_CACHE_CHECK([for pthread support],libiscsi_cv_HAVE_PTHREAD,[
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
|
||||
Reference in New Issue
Block a user