Adds a req to the list of pending requests, waking up worker thread if needed */
| 865 | |
| 866 | /* Adds a req to the list of pending requests, waking up worker thread if needed */ |
| 867 | static void HttpBackend_Add(struct HttpRequest* req, cc_uint8 flags) { |
| 868 | #if defined CC_BUILD_PSP || defined CC_BUILD_NDS |
| 869 | /* TODO why doesn't threading work properly on PSP */ |
| 870 | DoRequest(req); |
| 871 | #else |
| 872 | Mutex_Lock(pendingMutex); |
| 873 | { |
| 874 | RequestList_Append(&pendingReqs, req, flags); |
| 875 | } |
| 876 | Mutex_Unlock(pendingMutex); |
| 877 | Waitable_Signal(workerWaitable); |
| 878 | #endif |
| 879 | } |
| 880 | |
| 881 | /*########################################################################################################################* |
| 882 | *-----------------------------------------------------Http component------------------------------------------------------* |
no test coverage detected