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
+9 -5
View File
@@ -43,15 +43,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 <mbbiRecord.h>
@@ -95,16 +96,19 @@ static long init_record(pmbbi)
static long read_mbbi(pmbbi)
struct mbbiRecord *pmbbi;
{
int lockKey;
long status;
struct vxSym *private = (struct vxSym *) pmbbi->dpvt;
if (pmbbi->dpvt)
{
pmbbi->val = *((long *)(*private->ppvar) + private->index);
status = 0;
lockKey = intLock();
pmbbi->val = *((long *)(*private->ppvar) + private->index);
intUnlock(lockKey);
status = 0;
}
else
status = 1;
status = 1;
if(RTN_SUCCESS(status)) pmbbi->udf=FALSE;