Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
548735ef
Commit
548735ef
authored
9 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Commentary
parent
1270b2b3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/iomgr/fd_posix.h
+3
-1
3 additions, 1 deletion
src/core/iomgr/fd_posix.h
src/core/iomgr/pollset_posix.h
+4
-0
4 additions, 0 deletions
src/core/iomgr/pollset_posix.h
with
7 additions
and
1 deletion
src/core/iomgr/fd_posix.h
+
3
−
1
View file @
548735ef
...
...
@@ -128,7 +128,9 @@ gpr_uint32 grpc_fd_begin_poll(grpc_fd *fd, grpc_pollset *pollset,
grpc_pollset_worker
*
worker
,
gpr_uint32
read_mask
,
gpr_uint32
write_mask
,
grpc_fd_watcher
*
rec
);
/* Complete polling previously started with grpc_fd_begin_poll
MUST NOT be called with a pollset lock taken */
MUST NOT be called with a pollset lock taken
if got_read or got_write are 1, also does the notify_on_{read,write} as
appropriate. */
void
grpc_fd_end_poll
(
grpc_exec_ctx
*
exec_ctx
,
grpc_fd_watcher
*
rec
,
int
got_read
,
int
got_write
);
...
...
This diff is collapsed.
Click to expand it.
src/core/iomgr/pollset_posix.h
+
4
−
0
View file @
548735ef
...
...
@@ -112,8 +112,12 @@ void grpc_kick_drain(grpc_pollset *p);
int
grpc_poll_deadline_to_millis_timeout
(
gpr_timespec
deadline
,
gpr_timespec
now
);
/* Allow kick to wakeup the currently polling worker */
#define GRPC_POLLSET_CAN_KICK_SELF 1
/* Force the wakee to repoll when awoken */
#define GRPC_POLLSET_REEVALUATE_POLLING_ON_WAKEUP 2
/* As per grpc_pollset_kick, with an extended set of flags (defined above)
-- mostly for fd_posix's use. */
void
grpc_pollset_kick_ex
(
grpc_pollset
*
p
,
grpc_pollset_worker
*
specific_worker
,
gpr_uint32
flags
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment