Adds a req to the list of pending requests, waking up worker thread if needed
| 147 | |
| 148 | // Adds a req to the list of pending requests, waking up worker thread if needed |
| 149 | static void HttpBackend_Add(struct HttpRequest* req, cc_uint8 flags) { |
| 150 | // Add time based query string parameter to bypass browser cache |
| 151 | if (flags & HTTP_FLAG_NOCACHE) { |
| 152 | cc_string url = String_FromRawArray(req->url); |
| 153 | int lo = (int)(startTime), hi = (int)(startTime >> 32); |
| 154 | String_Format2(&url, "?t=%i%i", &hi, &lo); |
| 155 | } |
| 156 | |
| 157 | RequestList_Append(&queuedReqs, req, flags); |
| 158 | Http_StartNextDownload(); |
| 159 | } |
| 160 | |
| 161 | |
| 162 | /*########################################################################################################################* |
nothing calls this directly
no test coverage detected