MCPcopy Create free account
hub / github.com/apache/brpc / validate_bthread_concurrency

Function validate_bthread_concurrency

src/bthread/bthread.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 bool ignore_not_matched = false);
37
38static bool validate_bthread_concurrency(const char*, int32_t val) {
39 // bthread_setconcurrency sets the flag on success path which should
40 // not be strictly in a validator. But it's OK for a int flag.
41 return bthread_setconcurrency(val) == 0;
42}
43static bool validate_bthread_min_concurrency(const char*, int32_t val);
44static bool validate_bthread_current_tag(const char*, int32_t val);
45static bool validate_bthread_concurrency_by_tag(const char*, int32_t val);

Callers

nothing calls this directly

Calls 1

bthread_setconcurrencyFunction · 0.85

Tested by

no test coverage detected