From d905ebc3229eea66096013bf29aa5feae16643dd Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 22 Nov 2001 17:26:08 +0000 Subject: [PATCH] put the nanosleep in, this allows to make the readout priority higher than the memnet priority, which lowers the "pumping problem" --- hadaq/hwmdc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hadaq/hwmdc.c b/hadaq/hwmdc.c index d716e41..c49f647 100644 --- a/hadaq/hwmdc.c +++ b/hadaq/hwmdc.c @@ -1,4 +1,4 @@ -static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/Attic/hwmdc.c,v 6.16 2001-11-18 13:10:34 hadaq Exp $"; +static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/Attic/hwmdc.c,v 6.17 2001-11-22 17:26:08 hadaq Exp $"; #define _POSIX_C_SOURCE 199309L @@ -15,7 +15,7 @@ static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hada #include "subevt.h" #include "hwsam.h" -#define NSAMS 12 +#define NSAMS 5 #define SAMMASK ((1 << NSAMS) - 1) @@ -96,7 +96,7 @@ void Hardware_waitForTrigger(Hardware *my, void *partEvt) if ((anySamIsBusy & (1 << i)) && !HwSam_isBusy(my->sam[i])) { anySamIsBusy &= ~(1 << i); } else { -#if 0 +#if 1 struct timespec tS, *t = &tS; t->tv_sec = 0; t->tv_nsec = 020000000; -- 2.43.0