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

Method wait

Libraries/HttpClient/HttpClient.cpp:577–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577void SC::HttpClientLocalConditionVariable::wait(HttpClientLocalMutex& mutex)
578{
579#if SC_PLATFORM_WINDOWS
580 (void)SleepConditionVariableCS(reinterpret_cast<HttpClientLocalConditionVariableStorage*>(storage),
581 reinterpret_cast<HttpClientLocalMutexStorage*>(mutex.storage), INFINITE);
582#elif SC_PLATFORM_APPLE || SC_PLATFORM_LINUX
583 (void)pthread_cond_wait(reinterpret_cast<HttpClientLocalConditionVariableStorage*>(storage),
584 reinterpret_cast<HttpClientLocalMutexStorage*>(mutex.storage));
585#endif
586}
587
588bool SC::HttpClientLocalConditionVariable::wait(HttpClientLocalMutex& mutex, uint32_t timeoutMilliseconds)
589{

Callers 5

enqueueEventMethod · 0.45
pollMethod · 0.45
pollReadyMethod · 0.45
pullRequestBodyMethod · 0.45

Calls 1

Tested by

no test coverage detected