Skip to content
Snippets Groups Projects
Commit 4598b365 authored by benjamin.franksen's avatar benjamin.franksen
Browse files

fix: split off subThreadSleep to its own C file

This fixes a build error with older base releases.
parent 85023706
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,7 @@ DBD += seqSoftIoc.dbd ...@@ -76,6 +76,7 @@ DBD += seqSoftIoc.dbd
seqSoftIoc_DBD += base.dbd seqSoftIoc_DBD += base.dbd
seqSoftIoc_DBD += testSupport.dbd seqSoftIoc_DBD += testSupport.dbd
seqSoftIoc_SRCS += subThreadSleep.c
seqSoftIoc_SRCS += seqSoftIoc_registerRecordDeviceDriver.cpp seqSoftIoc_SRCS += seqSoftIoc_registerRecordDeviceDriver.cpp
ifeq '$(EPICS_HAS_UNIT_TEST)' '1' ifeq '$(EPICS_HAS_UNIT_TEST)' '1'
......
/*************************************************************************\
Copyright (c) 2010-2012 Helmholtz-Zentrum Berlin f. Materialien
und Energie GmbH, Germany (HZB)
This file is distributed subject to a Software License Agreement found
in the file LICENSE that is included with this distribution.
\*************************************************************************/
#include "epicsThread.h"
#include "subRecord.h"
#include "registryFunction.h"
#include "epicsExport.h"
long subThreadSleep(struct subRecord *psub)
{
epicsThreadSleep(1);
psub->val += 1.0;
return 0;
}
epicsRegisterFunction(subThreadSleep);
...@@ -60,15 +60,3 @@ void seq_test_done(void) ...@@ -60,15 +60,3 @@ void seq_test_done(void)
epicsAtThreadExit(seq_test_at_thread_exit, 0); epicsAtThreadExit(seq_test_at_thread_exit, 0);
#endif #endif
} }
#include "subRecord.h"
#include "registryFunction.h"
#include "epicsExport.h"
long subThreadSleep(struct subRecord *psub)
{
epicsThreadSleep(1);
psub->val += 1.0;
return 0;
}
epicsRegisterFunction(subThreadSleep);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment