Hi Denis, You can try the following at your own risk/adventure, I am not sure what you will be missing out and how much of an impact you might have for your use case.
Comment start_threads() in here https://github.com/grpc/grpc/blob/master/src/core/lib/iomgr/timer_manager.cc#L311 Change 'true' to 'false' in SetThreading() https://github.com/grpc/grpc/blob/ca60aac817af646ff22971403fd70d18c9523187/src/core/lib/iomgr/executor.cc#L98 As Nicholas mentioned this part isn't a public API and even if it works now, it is fragile for future updates. Best, -R. On Saturday, May 2, 2020 at 8:13:48 AM UTC-7, Денис Ваксман wrote: > > Dear All, > I'm working on developing a library for communication via gRPC. High-level > API doesn't fit the project requirements, so I chose the grpc-core library > as the basement. > But I've noticed that the grpc-core library starts up several threads on > grpc_init(). > It's critical for my situation and prevents me from using grpc-core at all. > Is there some way to disable multi-threading in the grpc-core library? > I need only gRPC Client functionality and it's ok if server mode doesn't > work. > Looking forward to your reply, > Denis V. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/66803a5d-3f03-4942-805e-06ade59b912e%40googlegroups.com.
