MCPcopy Create free account
hub / github.com/acl-dev/acl / rpc_signal

Method rpc_signal

lib_acl_cpp/src/ipc/rpc.cpp:85–108  ·  view source on GitHub ↗

�ú��������߳��б�����

Source from the content-addressed store, hash-verified

83
84// �ú��������߳��б�����
85void rpc_request::rpc_signal(void* ctx)
86{
87#ifdef ACL_WINDOWS
88 HWND hWnd = get_hwnd();
89 if (hWnd != NULL) {
90 // �򴰿ھ������Ϣ������ǰ����ĵ�ַ�������߳�
91 ::PostMessage(hWnd, RPC_WIN32_SIG, (WPARAM) ctx, (LPARAM) this);
92 return;
93 }
94#endif
95 if (ipc_ == NULL) {
96 abort();
97 }
98 /*
99 IPC_DAT data;
100 data.req = this;
101 data.ctx = ctx;
102 // �����̷߳��ͽ��
103 ipc_->send_message(RPC_SIG, &data, sizeof(data));
104 */
105 dat_.ctx = ctx;
106 // �����̷߳��ͽ��
107 ipc_->send_message(RPC_SIG, &dat_, sizeof(RPC_DAT));
108}
109
110bool rpc_request::cond_wait(int timeout /* = -1 */)
111{

Callers

nothing calls this directly

Calls 2

send_messageMethod · 0.80
get_hwndFunction · 0.50

Tested by

no test coverage detected