cmRtNet.h/c : Corrected mispelling in #ifdef header guards.

On failure of cmThreadMutexWaitOnCondVar() in _cmRtThreadCallback() the
correct result code is now reported.
This commit is contained in:
Kevin Larke 2014-10-15 11:08:26 -07:00
parent dfc94439da
commit 37b47e21fd
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#ifndef cmNet_h
#define cmNet_h
#ifndef cmRtNet_h
#define cmRtNet_h
#ifdef __cplusplus
extern "C" {
@ -12,7 +12,7 @@ extern "C" {
unique among all other nodes on the network. A node also has a set of application
defined 'endpoints'. Each endpoint has a label and id that is unique among all
other endpoints on the same node. Endpoints on different nodes however may share
use the same label and id. Endpoints are used by remote senders to identify
the same label and id. Endpoints are used by remote senders to identify
a particular receiver which is sharing the node with other receivers. Endpoints
are therefore analogous to port numbers on sockets.

View File

@ -419,7 +419,7 @@ bool _cmRtThreadCallback(void* arg)
cmSleepMs(cp->noBlockSleepMs);
else
{
if( cmThreadMutexWaitOnCondVar(cp->engMutexH,false) != kOkRtRC )
if( (rc = cmThreadMutexWaitOnCondVar(cp->engMutexH,false)) != kOkRtRC )
{
cmThreadMutexUnlock(cp->engMutexH);
_cmRtError(cp->p,rc,"The cmRtSys cond. var. wait failed.");