MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / DoraXrtHttpAttachRuntimeThread

Function DoraXrtHttpAttachRuntimeThread

Source/Http/XrtHttpClient.c:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83} DoraXrtHttpBodyMode;
84
85static int DoraXrtHttpAttachRuntimeThread(void) {
86 static volatile long initialized = 0;
87 if (__xnetAtomicCompareExchange32(&initialized, 1, 0) == 0) {
88#if !defined(_WIN32) && !defined(_WIN64)
89 (void)signal(SIGPIPE, SIG_IGN);
90#endif
91 xrtInit();
92 xrtThreadDetachCurrent();
93 }
94 return xrtThreadAttachCurrent() != NULL;
95}
96
97static int DoraXrtHttpIsRedirect(unsigned int statusCode) {
98 return statusCode == 301u || statusCode == 302u || statusCode == 303u ||

Callers 2

DoraXrtHttpExecuteFunction · 0.85
DoraXrtHttpExecuteStreamFunction · 0.85

Calls 1

signalFunction · 0.50

Tested by

no test coverage detected