MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / ContentWriteMain

Function ContentWriteMain

Goldleaf/source/nsp/nsp_Installer.cpp:152–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 };
151
152 void ContentWriteMain(void *ctx_raw) {
153 SetThreadName("nsp.ContentWriteThread");
154 auto ctx = reinterpret_cast<ContentWriteContext*>(ctx_raw);
155
156 while(true) {
157 const auto status = ctx->GetStatus();
158 if(status == ContentWriteContext::Status::Done) {
159 break;
160 }
161 else if(status == ContentWriteContext::Status::BufferQueueAvailable) {
162 const auto rc = ctx->PopHandleNextBuffer();
163 if(R_FAILED(rc)) {
164 ctx->SignalDone();
165 break;
166 }
167 }
168
169 svcSleepThread(100'000ul);
170 }
171 }
172
173 }
174

Callers

nothing calls this directly

Calls 4

SetThreadNameFunction · 0.85
GetStatusMethod · 0.80
PopHandleNextBufferMethod · 0.80
SignalDoneMethod · 0.80

Tested by

no test coverage detected