Browse Source

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

On failure of cmThreadMutexWaitOnCondVar() in _cmRtThreadCallback() the
correct result code is now reported.
master
Kevin Larke 10 years ago
parent
commit
37b47e21fd
2 changed files with 4 additions and 4 deletions
  1. 3
    3
      cmRtNet.h
  2. 1
    1
      cmRtSys.c

+ 3
- 3
cmRtNet.h View File

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

+ 1
- 1
cmRtSys.c View File

419
         cmSleepMs(cp->noBlockSleepMs);
419
         cmSleepMs(cp->noBlockSleepMs);
420
       else
420
       else
421
       {
421
       {
422
-        if( cmThreadMutexWaitOnCondVar(cp->engMutexH,false) != kOkRtRC )
422
+        if( (rc = cmThreadMutexWaitOnCondVar(cp->engMutexH,false)) != kOkRtRC )
423
         {
423
         {
424
           cmThreadMutexUnlock(cp->engMutexH);
424
           cmThreadMutexUnlock(cp->engMutexH);
425
           _cmRtError(cp->p,rc,"The cmRtSys cond. var. wait failed.");
425
           _cmRtError(cp->p,rc,"The cmRtSys cond. var. wait failed.");

Loading…
Cancel
Save