addition of intLock()/intUnlock() (BESSY)

This commit is contained in:
William Lupton
1998-06-04 19:32:12 +00:00
parent fdb0b29c0a
commit 3995dbafdb
12 changed files with 96 additions and 38 deletions

View File

@@ -44,15 +44,16 @@
#include <vxWorks.h>
#include <sysSymTbl.h>
#include <sysSymTbl.h>
#include <types.h>
#include <stdioLib.h>
#include <string.h>
#include <intLib.h>
#include <alarm.h>
#include <dbDefs.h>
#include <dbAccess.h>
#include <recSup.h>
#include <recSup.h>
#include <devSup.h>
#include <module_types.h>
#include <boRecord.h>
@@ -96,12 +97,17 @@ static long init_record(pbo)
static long write_bo(pbo)
struct boRecord *pbo;
{
int lockKey;
struct vxSym *private = (struct vxSym *) pbo->dpvt;
if (private)
*((unsigned short *)(*private->ppvar) + private->index) = pbo->val;
{
lockKey = intLock();
*((unsigned short *)(*private->ppvar) + private->index) = pbo->val;
intUnlock(lockKey);
}
else
return(1);
return(1);
pbo->udf=FALSE;