diff --git a/src/libCom/osi/os/vxWorks/osdThread.c b/src/libCom/osi/os/vxWorks/osdThread.c index f2e06c669..26fd74f5f 100644 --- a/src/libCom/osi/os/vxWorks/osdThread.c +++ b/src/libCom/osi/os/vxWorks/osdThread.c @@ -328,45 +328,43 @@ void epicsThreadPrivateDelete(epicsThreadPrivateId id) } /* - * Note that it is not necessary to have mutex for following - * because they must be called by the same thread + * No mutex is necessary here because by definition + * thread variables are local to a single thread. */ void epicsThreadPrivateSet (epicsThreadPrivateId id, void *pvt) { - int indpepicsThreadPrivate = (int)id; + int int_id = (int)id; int nepicsThreadPrivateOld = 0; - if(papTSD) nepicsThreadPrivateOld = (int)papTSD[0]; - if(!papTSD || (nepicsThreadPrivateOld