|
|
|
@ -26,6 +26,7 @@ |
|
|
|
|
#include <string.h> |
|
|
|
|
#include <unistd.h> |
|
|
|
|
|
|
|
|
|
#include <grpc/grpc.h> |
|
|
|
|
#include <grpc/support/alloc.h> |
|
|
|
|
#include <grpc/support/log.h> |
|
|
|
|
#include <grpc/support/thd.h> |
|
|
|
@ -308,9 +309,8 @@ static void test_threading(void) { |
|
|
|
|
int main(int argc, char **argv) { |
|
|
|
|
const char *poll_strategy = NULL; |
|
|
|
|
grpc_test_init(argc, argv); |
|
|
|
|
grpc_init(); |
|
|
|
|
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; |
|
|
|
|
grpc_iomgr_init(&exec_ctx); |
|
|
|
|
grpc_iomgr_start(&exec_ctx); |
|
|
|
|
|
|
|
|
|
poll_strategy = grpc_get_poll_strategy_name(); |
|
|
|
|
if (poll_strategy != NULL && strcmp(poll_strategy, "epollsig") == 0) { |
|
|
|
@ -323,8 +323,8 @@ int main(int argc, char **argv) { |
|
|
|
|
poll_strategy); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
grpc_iomgr_shutdown(&exec_ctx); |
|
|
|
|
grpc_exec_ctx_finish(&exec_ctx); |
|
|
|
|
grpc_shutdown(); |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
#else /* defined(GRPC_LINUX_EPOLL) */ |
|
|
|
|