From f2ccfaf1defc4760f618bf6d83d75990ba7e64b1 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 23 Oct 2002 22:19:28 +0000 Subject: [PATCH] certain functions are nolonger inline --- src/libCom/osi/epicsThread.cpp | 69 ++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/src/libCom/osi/epicsThread.cpp b/src/libCom/osi/epicsThread.cpp index a401128ed..3338da06f 100644 --- a/src/libCom/osi/epicsThread.cpp +++ b/src/libCom/osi/epicsThread.cpp @@ -19,6 +19,7 @@ #define epicsExportSharedSymbols #include "epicsThread.h" +#include "epicsAssert.h" epicsThreadRunable::~epicsThreadRunable () {} void epicsThreadRunable::stop() {}; @@ -114,3 +115,71 @@ bool epicsThread::isCurrentThread () const { return ( epicsThreadGetIdSelf () == this->id ); } + +void epicsThread::resume () +{ + epicsThreadResume (this->id); +} + +void epicsThread::getName (char *name, size_t size) const +{ + epicsThreadGetName (this->id, name, size); +} + +epicsThreadId epicsThread::getId () const +{ + return this->id; +} + +unsigned int epicsThread::getPriority () const +{ + return epicsThreadGetPriority (this->id); +} + +void epicsThread::setPriority (unsigned int priority) +{ + epicsThreadSetPriority (this->id, priority); +} + +bool epicsThread::priorityIsEqual (const epicsThread &otherThread) const +{ + if ( epicsThreadIsEqual (this->id, otherThread.id) ) { + return true; + } + return false; +} + +bool epicsThread::isSuspended () const +{ + if ( epicsThreadIsSuspended (this->id) ) { + return true; + } + return false; +} + +bool epicsThread::operator == (const epicsThread &rhs) const +{ + return (this->id == rhs.id); +} + +void epicsThread::suspendSelf () +{ + epicsThreadSuspendSelf (); +} + +void epicsThread::sleep (double seconds) +{ + epicsThreadSleep (seconds); +} + +//epicsThread & epicsThread::getSelf () +//{ +// return * static_cast ( epicsThreadGetIdSelf () ); +//} + +const char *epicsThread::getNameSelf () +{ + return epicsThreadGetNameSelf (); +} + +