Skip to content
Snippets Groups Projects
Commit 0224dcc2 authored by Sree Kuchibhotla's avatar Sree Kuchibhotla
Browse files

clang format

parent fcb304f4
No related branches found
No related tags found
No related merge requests found
...@@ -323,7 +323,7 @@ static void polling_island_add_fds_locked(polling_island *pi, grpc_fd **fds, ...@@ -323,7 +323,7 @@ static void polling_island_add_fds_locked(polling_island *pi, grpc_fd **fds,
#ifdef GRPC_TSAN #ifdef GRPC_TSAN
/* See the definition of g_epoll_sync for more context */ /* See the definition of g_epoll_sync for more context */
gpr_atm_rel_store(&g_epoll_sync, (gpr_atm) 0); gpr_atm_rel_store(&g_epoll_sync, (gpr_atm)0);
#endif /* defined(GRPC_TSAN) */ #endif /* defined(GRPC_TSAN) */
for (i = 0; i < fd_count; i++) { for (i = 0; i < fd_count; i++) {
...@@ -443,8 +443,8 @@ static polling_island *polling_island_create(grpc_fd *initial_fd) { ...@@ -443,8 +443,8 @@ static polling_island *polling_island_create(grpc_fd *initial_fd) {
pi->fds = NULL; pi->fds = NULL;
} }
gpr_atm_rel_store(&pi->ref_count, (gpr_atm) 0); gpr_atm_rel_store(&pi->ref_count, (gpr_atm)0);
gpr_atm_rel_store(&pi->merged_to, (gpr_atm) NULL); gpr_atm_rel_store(&pi->merged_to, (gpr_atm)NULL);
pi->epoll_fd = epoll_create1(EPOLL_CLOEXEC); pi->epoll_fd = epoll_create1(EPOLL_CLOEXEC);
...@@ -473,7 +473,7 @@ static polling_island *polling_island_create(grpc_fd *initial_fd) { ...@@ -473,7 +473,7 @@ static polling_island *polling_island_create(grpc_fd *initial_fd) {
static void polling_island_delete(polling_island *pi) { static void polling_island_delete(polling_island *pi) {
GPR_ASSERT(pi->fd_cnt == 0); GPR_ASSERT(pi->fd_cnt == 0);
gpr_atm_rel_store(&pi->merged_to, (gpr_atm) NULL); gpr_atm_rel_store(&pi->merged_to, (gpr_atm)NULL);
close(pi->epoll_fd); close(pi->epoll_fd);
pi->epoll_fd = -1; pi->epoll_fd = -1;
...@@ -649,7 +649,7 @@ static polling_island *polling_island_merge(polling_island *p, ...@@ -649,7 +649,7 @@ static polling_island *polling_island_merge(polling_island *p,
polling_island_add_wakeup_fd_locked(p, &polling_island_wakeup_fd); polling_island_add_wakeup_fd_locked(p, &polling_island_wakeup_fd);
/* Add the 'merged_to' link from p --> q */ /* Add the 'merged_to' link from p --> q */
gpr_atm_rel_store(&p->merged_to, (gpr_atm) q); gpr_atm_rel_store(&p->merged_to, (gpr_atm)q);
PI_ADD_REF(q, "pi_merge"); /* To account for the new incoming ref from p */ PI_ADD_REF(q, "pi_merge"); /* To account for the new incoming ref from p */
gpr_mu_unlock(&p->mu); gpr_mu_unlock(&p->mu);
...@@ -811,7 +811,7 @@ static grpc_fd *fd_create(int fd, const char *name) { ...@@ -811,7 +811,7 @@ static grpc_fd *fd_create(int fd, const char *name) {
holding a lock to it anyway. */ holding a lock to it anyway. */
gpr_mu_lock(&new_fd->mu); gpr_mu_lock(&new_fd->mu);
gpr_atm_rel_store(&new_fd->refst, (gpr_atm) 1); gpr_atm_rel_store(&new_fd->refst, (gpr_atm)1);
new_fd->fd = fd; new_fd->fd = fd;
new_fd->shutdown = false; new_fd->shutdown = false;
new_fd->orphaned = false; new_fd->orphaned = false;
......
...@@ -100,7 +100,7 @@ void grpc_event_engine_init(void); ...@@ -100,7 +100,7 @@ void grpc_event_engine_init(void);
void grpc_event_engine_shutdown(void); void grpc_event_engine_shutdown(void);
/* Return the name of the poll strategy */ /* Return the name of the poll strategy */
const char* grpc_get_poll_strategy_name(); const char *grpc_get_poll_strategy_name();
/* Create a wrapped file descriptor. /* Create a wrapped file descriptor.
Requires fd is a non-blocking file descriptor. Requires fd is a non-blocking file descriptor.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment