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

Function SetCurrentRequest

src/Http_Worker.c:800–807  ·  view source on GitHub ↗

#######################################################################################################################* *-----------------------------------------------------Http worker---------------------------------------------------------* *#########################################################################################################################*/ Sets up state to begin a htt

Source from the content-addressed store, hash-verified

798*#########################################################################################################################*/
799/* Sets up state to begin a http request */
800static void SetCurrentRequest(struct HttpRequest* req) {
801 Mutex_Lock(curRequestMutex);
802 {
803 HttpRequest_Copy(&http_curRequest, req);
804 http_curRequest.progress = HTTP_PROGRESS_MAKING_REQUEST;
805 }
806 Mutex_Unlock(curRequestMutex);
807}
808
809static void PerformRequest(struct HttpRequest* req) {
810 cc_uint64 beg, end;

Callers 1

DoRequestFunction · 0.85

Calls 2

Mutex_LockFunction · 0.70
Mutex_UnlockFunction · 0.70

Tested by

no test coverage detected