From df7e05397f7e1a175214458412122dd7ed407470 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 5 Nov 2008 10:15:53 +0000 Subject: [PATCH] Tweak rwlock_test does not yet work git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7975 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/Makefile.in | 2 +- bacula/src/lib/rwlock.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bacula/src/lib/Makefile.in b/bacula/src/lib/Makefile.in index 240156391a..dfbd9030a7 100644 --- a/bacula/src/lib/Makefile.in +++ b/bacula/src/lib/Makefile.in @@ -143,7 +143,7 @@ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status rwlock_test: Makefile rm -f rwlock.o $(CXX) -DTEST_RWLOCK $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) rwlock.c - $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ rwlock.o $(LIBS) $(DLIB) -lbac -lm + $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ rwlock.o $(LIBS) $(DLIB) -lbac $(OPENSSL_LIBS) -lm rm -f rwlock.o $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) rwlock.c diff --git a/bacula/src/lib/rwlock.c b/bacula/src/lib/rwlock.c index b46f91407b..12449fe8df 100644 --- a/bacula/src/lib/rwlock.c +++ b/bacula/src/lib/rwlock.c @@ -318,9 +318,9 @@ int rwl_writeunlock(brwlock_t *rwl) #ifdef TEST_RWLOCK -#define THREADS 5 +#define THREADS 50 #define DATASIZE 15 -#define ITERATIONS 10000 +#define ITERATIONS 100000 /* * Keep statics for each thread. -- 2.39.5