MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / ClearCurrentRequest

Function ClearCurrentRequest

src/Http_Worker.c:824–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824static void ClearCurrentRequest(void) {
825 Mutex_Lock(curRequestMutex);
826 {
827 http_curRequest.id = 0;
828 http_curRequest.progress = HTTP_PROGRESS_NOT_WORKING_ON;
829 }
830 Mutex_Unlock(curRequestMutex);
831}
832
833static void DoRequest(struct HttpRequest* request) {
834 SetCurrentRequest(request);

Callers 1

DoRequestFunction · 0.85

Calls 2

Mutex_LockFunction · 0.70
Mutex_UnlockFunction · 0.70

Tested by

no test coverage detected