MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / TypeToString

Method TypeToString

Libraries/Async/Async.cpp:47–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46#if SC_ASYNC_ENABLE_LOG
47const char* SC::AsyncRequest::TypeToString(Type type)
48{
49 switch (type)
50 {
51 case Type::LoopTimeout: return "LoopTimeout";
52 case Type::LoopWakeUp: return "LoopWakeUp";
53 case Type::LoopWork: return "LoopWork";
54 case Type::ProcessExit: return "ProcessExit";
55 case Type::Signal: return "Signal";
56 case Type::SocketAccept: return "SocketAccept";
57 case Type::SocketConnect: return "SocketConnect";
58 case Type::SocketSend: return "SocketSend";
59 case Type::SocketSendTo: return "SocketSendTo";
60 case Type::SocketReceive: return "SocketReceive";
61 case Type::SocketReceiveFrom: return "SocketReceiveFrom";
62 case Type::FileRead: return "FileRead";
63 case Type::FileWrite: return "FileWrite";
64 case Type::FileSend: return "FileSend";
65 case Type::FileReadiness: return "FileReadiness";
66 case Type::ExternalCompletion: return "ExternalCompletion";
67 case Type::FileSystemOperation: return "FileSystemOperation";
68 }
69 AsyncAssert::unreachable();
70}
71#endif
72
73void SC::AsyncRequest::setDebugName(const char* newDebugName)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected