Home
last modified time | relevance | path

Searched refs:grpc_resource_user_allocate_threads (Results 1 – 4 of 4) sorted by relevance

/external/grpc-grpc/test/core/iomgr/
Dresource_quota_test.cc813 GPR_ASSERT(grpc_resource_user_allocate_threads(ru1, 10)); in test_thread_limit()
814 GPR_ASSERT(grpc_resource_user_allocate_threads(ru2, 10)); in test_thread_limit()
815 GPR_ASSERT(grpc_resource_user_allocate_threads(ru1, 40)); in test_thread_limit()
816 GPR_ASSERT(grpc_resource_user_allocate_threads(ru2, 40)); in test_thread_limit()
819 GPR_ASSERT(!grpc_resource_user_allocate_threads(ru2, 20)); in test_thread_limit()
826 GPR_ASSERT(grpc_resource_user_allocate_threads(ru2, 20)); in test_thread_limit()
829 GPR_ASSERT(!grpc_resource_user_allocate_threads(ru1, 20)); in test_thread_limit()
834 GPR_ASSERT(grpc_resource_user_allocate_threads(ru1, 5)); in test_thread_limit()
836 !grpc_resource_user_allocate_threads(ru2, 10)); // Only 5 available in test_thread_limit()
837 GPR_ASSERT(grpc_resource_user_allocate_threads(ru2, 5)); in test_thread_limit()
[all …]
/external/grpc-grpc/src/cpp/thread_manager/
Dthread_manager.cc126 if (!grpc_resource_user_allocate_threads(resource_user_, min_pollers_)) { in Initialize()
171 if (grpc_resource_user_allocate_threads(resource_user_, 1)) { in MainWorkLoop()
/external/grpc-grpc/src/core/lib/iomgr/
Dresource_quota.h99 bool grpc_resource_user_allocate_threads(grpc_resource_user* resource_user,
Dresource_quota.cc832 bool grpc_resource_user_allocate_threads(grpc_resource_user* resource_user, in grpc_resource_user_allocate_threads() function