Skip to content
Snippets Groups Projects
Commit bd34477e authored by Ken Payson's avatar Ken Payson
Browse files

Address PR feedback

parent 2240a13d
No related branches found
No related tags found
No related merge requests found
...@@ -265,9 +265,9 @@ typedef struct poll_args { ...@@ -265,9 +265,9 @@ typedef struct poll_args {
struct poll_args *prev; struct poll_args *prev;
} poll_args; } poll_args;
// This is a 2-tiered cash, we mantain a hash table // This is a 2-tiered cache, we mantain a hash table
// of active poll calls, so we can wait on the result // of active poll calls, so we can wait on the result
// of that call. We also maintain a freelist of innactive // of that call. We also maintain a freelist of inactive
// poll threads. // poll threads.
typedef struct poll_hash_table { typedef struct poll_hash_table {
poll_args *free_pollers; poll_args *free_pollers;
...@@ -1315,7 +1315,7 @@ static void cache_insert_locked(poll_args *args) { ...@@ -1315,7 +1315,7 @@ static void cache_insert_locked(poll_args *args) {
poll_cache.count++; poll_cache.count++;
} }
void init_result(poll_args *pargs) { static void init_result(poll_args *pargs) {
pargs->result = gpr_malloc(sizeof(poll_result)); pargs->result = gpr_malloc(sizeof(poll_result));
gpr_ref_init(&pargs->result->refcount, 1); gpr_ref_init(&pargs->result->refcount, 1);
pargs->result->watchers = NULL; pargs->result->watchers = NULL;
......
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