18 #ifndef trp_client_hpp
19 #define trp_client_hpp
21 #include <ndb_global.h>
22 #include <NdbCondition.h>
47 void do_forceSend(
int val = 1);
54 int raw_sendFragmentedSignal(
const NdbApiSignal*, Uint32 nodeId,
56 int raw_sendFragmentedSignal(
const NdbApiSignal*, Uint32 nodeId,
59 const trp_node & getNodeInfo(Uint32
i)
const;
61 virtual void recordWaitTimeNanos(Uint64 nanos)
67 Uint32 getOwnNodeId()
const;
99 int wait_n_unlock(
int wait_time, Uint32 nodeId, Uint32 state,
100 bool forceSend=
false);
101 int wait_for_input_in_loop(
int wait_time,
bool forceSend);
102 void wait_for_input(
int wait_time);
103 int wait_scan(
int wait_time, Uint32 nodeId,
bool forceSend);
104 void unlock_and_signal();
110 #include "TransporterFacade.hpp"
116 NdbMutex_Lock(m_facade->theMutexPtr);
117 assert(m_poll.m_locked ==
false);
118 m_poll.m_locked =
true;
125 assert(m_poll.m_locked ==
true);
126 m_poll.m_locked =
false;
127 NdbMutex_Unlock(m_facade->theMutexPtr);
134 m_facade->wakeup(
this);
139 trp_client::raw_sendSignal(
const NdbApiSignal * signal, Uint32 nodeId)
141 assert(m_poll.m_locked);
142 return m_facade->sendSignal(signal, nodeId);
147 trp_client::raw_sendSignal(
const NdbApiSignal * signal, Uint32 nodeId,
150 assert(m_poll.m_locked);
151 return m_facade->sendSignal(signal, nodeId, ptr, secs);
156 trp_client::raw_sendSignal(
const NdbApiSignal * signal, Uint32 nodeId,
159 assert(m_poll.m_locked);
160 return m_facade->sendSignal(signal, nodeId, ptr, secs);
165 trp_client::raw_sendFragmentedSignal(
const NdbApiSignal * signal, Uint32 nodeId,
168 assert(m_poll.m_locked);
169 return m_facade->sendFragmentedSignal(signal, nodeId, ptr, secs);
174 trp_client::raw_sendFragmentedSignal(
const NdbApiSignal * signal, Uint32 nodeId,
178 assert(m_poll.m_locked);
179 return m_facade->sendFragmentedSignal(signal, nodeId, ptr, secs);