----------------------------------------------------------------------------- Locks the nodes and returns a pointer to the requested one -----------------------------------------------------------------------------
| 936 | // Locks the nodes and returns a pointer to the requested one |
| 937 | //----------------------------------------------------------------------------- |
| 938 | Node* Driver::GetNode |
| 939 | ( |
| 940 | uint8 _nodeId |
| 941 | ) |
| 942 | { |
| 943 | if (m_nodeMutex->IsSignalled()) { |
| 944 | Log::Write(LogLevel_Error, _nodeId, "Driver Thread is Not Locked during Call to GetNode"); |
| 945 | return NULL; |
| 946 | } |
| 947 | if( Node* node = m_nodes[_nodeId] ) |
| 948 | { |
| 949 | return node; |
| 950 | } |
| 951 | |
| 952 | return NULL; |
| 953 | } |
| 954 | |
| 955 | //----------------------------------------------------------------------------- |
| 956 | // Sending Z-Wave messages |
no test coverage detected