MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / lock

Method lock

Libraries/HttpClient/HttpClient.cpp:538–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538void SC::HttpClientLocalMutex::lock()
539{
540#if SC_PLATFORM_WINDOWS
541 EnterCriticalSection(reinterpret_cast<HttpClientLocalMutexStorage*>(storage));
542#elif SC_PLATFORM_APPLE || SC_PLATFORM_LINUX
543 (void)pthread_mutex_lock(reinterpret_cast<HttpClientLocalMutexStorage*>(storage));
544#endif
545}
546
547void SC::HttpClientLocalMutex::unlock()
548{

Callers 15

testMutexMethod · 0.45
testSemaphoreMethod · 0.45
closeMethod · 0.45
enqueueEventMethod · 0.45
dequeueEventMethod · 0.45
hasPendingEventsMethod · 0.45
releaseResponseBufferMethod · 0.45
processPendingEventsMethod · 0.45
pollMethod · 0.45
markReadyMethod · 0.45

Calls

no outgoing calls

Tested by 2

testMutexMethod · 0.36
testSemaphoreMethod · 0.36