| 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 |
nothing calls this directly
no test coverage detected