<
typenameTType =
void>
65 template<
class... TArgs>
74 using clock= chrono::system_clock;
84 template<
typenameT =
bool>
87constexpr
autokWait = chrono::milliseconds(100);
91 const auto max= clock::now() + kWait;
109 unsigned intnanoseconds;
112 const autons = chrono::duration_cast<clock::duration>(chrono::nanoseconds(nanoseconds));
113 returnclock::from_time_t(seconds) + ns;
116 template<
class... TArgs>
121 if(!
x_CvWait(lock, std::forward<TArgs>(args)...))
return false;
156 template<
classTValue>
172 if(
autolocked = this->
GetLock()) {
173 if(!locked->empty()) {
174 value= std::move(locked->front());
209 template<
classTParam>
212 using TValue=
typenameTParam::TValueType;
214 template<
classTDescription>
221 " was increased to the minimum allowed value ('"<<
sm_MinValue<<
"')");
232 template<
classTParam>
235 using TValue=
typenameTParam::TValueType;
239 template<
classTDescription>
245 template<
typenameT>
251TParam::SetDefault(
static_cast<TValue>(
value));
260 template<
typenameT>
263 boolsourcing_complete;
264 typenameTParam::EParamSource param_source;
265TParam::GetDefault();
266TParam::GetState(&sourcing_complete, ¶m_source);
268 if(sourcing_complete && (param_source == TParam::eSource_Default)) {
279 template<
classTDescription>
284 template<
classTParam>
287 using TValue=
typenameTParam::TValueType;
303 #define PSG_PARAM_TYPE(section, name) SPSG_Param<NCBI_PARAM_TYPE(section, name)> 304 #define PSG_PARAM_VALUE_TYPE(section, name) SPSG_ParamValue<NCBI_PARAM_TYPE(section, name)> 306 #define PSG_PARAM_VALUE_DECL_MIN(type, section, name) \ 307 NCBI_PARAM_DECL(type, section, name); \ 309 struct PSG_PARAM_TYPE(section, name)::SAdjust : SPSG_ParamMin<NCBI_PARAM_TYPE(section, name)> {} 311 #define PSG_PARAM_VALUE_DEF_MIN(type, section, name, default_value, min_value) \ 312 NCBI_PARAM_DEF(type, section, name, default_value); \ 313 template <> PSG_PARAM_TYPE(section, name)::TValue SPSG_ParamMin<NCBI_PARAM_TYPE(section, name)>::sm_MinValue = min_valuestatic void SetTestIdentity(const string &identity)
static shared_ptr< CPSG_Request > CreateRawRequest(string abs_path_ref, shared_ptr< void > user_context, CRef< CRequestContext > request_context)
static const CPSG_BlobId * GetRawResponseBlobId(const shared_ptr< CPSG_BlobData > &blob_data)
static int GetReplyHttpCode(const shared_ptr< CPSG_Reply > &reply)
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
void Warning(CExceptionArgs_Base &args)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool IsInfinite(void) const
Check if the deadline is infinite.
void GetExpirationTime(time_t *sec, unsigned int *nanosec) const
Get the number of seconds and nanoseconds (since 1/1/1970).
@ eInfinite
Infinite deadline.
NCBI_PARAM_TYPE(PSG, throttle_by_connection_error_rate) TPSG_ThrottleThreshold
#define PSG_PARAM_VALUE_DECL_MIN(type, section, name)
NCBI_PARAM_ENUM_DECL(EPSG_DebugPrintout, PSG, debug_printout)
NCBI_PARAM_DECL(unsigned, PSG, rd_buf_size)
typedef NCBI_PARAM_TYPE(PSG, request_timeout) TPSG_RequestTimeout
NCBI_PARAM_TYPE(PSG, service) TPSG_Service
#define PSG_PARAM_VALUE_TYPE(section, name)
#define PSG_PARAM_TYPE(section, name)
NCBI_PARAM_TYPE(PSG, throttle_relaxation_period) TPSG_ThrottlePeriod
chrono::system_clock::time_point time_point
const GenericPointer< typename T::ValueType > T2 value
Defines: CTimeFormat - storage class for time format.
static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
const atomic_bool & Stopped() const
bool Pop(TValue &value, const CDeadline &deadline=CDeadline::eInfinite)
bool x_CvWait(unique_lock< mutex > &l)
void NotifyOne() volatile
bool x_WaitUntil(const volatile atomic< T > &a, const CDeadline &deadline, T v=false, bool rv=false)
SPSG_CV & GetThis() volatile
chrono::system_clock clock
bool x_Wait(TArgs &&... args)
static clock::time_point x_GetTP(const CDeadline &d)
void NotifyAll() volatile
bool x_CvWait(unique_lock< mutex > &l, const clock::time_point &t)
bool WaitUntil(TArgs &&... args) volatile
bool x_WaitUntil(const CDeadline &deadline)
typename TParam::TValueType TValue
static TValue sm_MinValue
static TValue Do(TValue value, const TDescription &desc)
SPSG_ParamValue(TValue value)
SPSG_ParamValue(function< TValue(TValue)> adjust)
SPSG_ParamValue(EGetDefault)
typename TParam::TValueType TValue
static TValue Do(TValue value, const TDescription &)
static const auto & GetParamDescription()
static TValue GetDefault()
static void SetImplicitDefault(const T &value)
static void SetDefault(const T &value)
typename TParam::TValueType TValue
static const auto & GetParamDescription(const CParam< TDescription > *)
static void SetDefault(const string &value)
SLock< deque< TValue > > GetLock()
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4