MCPcopy Create free account
hub / github.com/Kitware/CMake / SendToken

Method SendToken

Source/CTest/cmUVJobServerClient.cxx:422–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void ImplPosix::SendToken()
423{
424 if (this->Conn == Connection::None) {
425 return;
426 }
427
428 static char token = '.';
429
430 uv_buf_t const buf = uv_buf_init(&token, sizeof(token));
431 int status = cm::uv_write(this->GetWriter(), &buf, 1, this->OnWrite);
432 if (status != 0) {
433 this->Disconnect(status);
434 }
435}
436
437void ImplPosix::StartReceivingTokens()
438{

Callers 1

ReleaseTokenMethod · 0.80

Calls 4

GetWriterMethod · 0.95
DisconnectMethod · 0.95
uv_buf_initFunction · 0.85
uv_writeFunction · 0.50

Tested by

no test coverage detected