MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / ipcSendData

Function ipcSendData

Common/helper_multiprocess.cpp:498–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498int ipcSendData(HANDLE mailslot, const void *data, size_t sz) {
499 BOOL result;
500 DWORD cbWritten;
501
502 result = WriteFile(mailslot, data, (DWORD)sz, &cbWritten, (LPOVERLAPPED)NULL);
503 if (!result) {
504 printf("IPC failure: WriteFile failed with %d.\n", GetLastError());
505 return -1;
506 }
507 return 0;
508}
509
510int ipcRecvData(ipcHandle *handle, void *data, size_t sz) {
511 DWORD cbRead = 0;

Callers 1

ipcSendShareableHandlesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected