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
4c33dba5
Commit
4c33dba5
authored
9 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Fix windows pollset initialization
parent
8479c972
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/core/lib/iomgr/iomgr_windows.c
+3
-0
3 additions, 0 deletions
src/core/lib/iomgr/iomgr_windows.c
src/core/lib/iomgr/pollset_windows.c
+2
-2
2 additions, 2 deletions
src/core/lib/iomgr/pollset_windows.c
src/core/lib/iomgr/pollset_windows.h
+3
-0
3 additions, 0 deletions
src/core/lib/iomgr/pollset_windows.h
with
8 additions
and
2 deletions
src/core/lib/iomgr/iomgr_windows.c
+
3
−
0
View file @
4c33dba5
...
...
@@ -41,6 +41,7 @@
#include
"src/core/lib/iomgr/iocp_windows.h"
#include
"src/core/lib/iomgr/iomgr.h"
#include
"src/core/lib/iomgr/pollset_windows.h"
#include
"src/core/lib/iomgr/socket_windows.h"
/* Windows' io manager is going to be fully designed using IO completion
...
...
@@ -61,11 +62,13 @@ static void winsock_shutdown(void) {
void
grpc_iomgr_platform_init
(
void
)
{
winsock_init
();
grpc_iocp_init
();
grpc_pollset_global_init
();
}
void
grpc_iomgr_platform_flush
(
void
)
{
grpc_iocp_flush
();
}
void
grpc_iomgr_platform_shutdown
(
void
)
{
grpc_pollset_global_shutdown
();
grpc_iocp_shutdown
();
winsock_shutdown
();
}
...
...
This diff is collapsed.
Click to expand it.
src/core/lib/iomgr/pollset_windows.c
+
2
−
2
View file @
4c33dba5
...
...
@@ -47,7 +47,7 @@ gpr_mu grpc_polling_mu;
static
grpc_pollset_worker
*
g_active_poller
;
static
grpc_pollset_worker
g_global_root_worker
;
void
grpc_pollset_global_init
()
{
void
grpc_pollset_global_init
(
void
)
{
gpr_mu_init
(
&
grpc_polling_mu
);
g_active_poller
=
NULL
;
g_global_root_worker
.
links
[
GRPC_POLLSET_WORKER_LINK_GLOBAL
].
next
=
...
...
@@ -55,7 +55,7 @@ void grpc_pollset_global_init() {
&
g_global_root_worker
;
}
void
grpc_pollset_global_shutdown
()
{
gpr_mu_destroy
(
&
grpc_polling_mu
);
}
void
grpc_pollset_global_shutdown
(
void
)
{
gpr_mu_destroy
(
&
grpc_polling_mu
);
}
static
void
remove_worker
(
grpc_pollset_worker
*
worker
,
grpc_pollset_worker_link_type
type
)
{
...
...
This diff is collapsed.
Click to expand it.
src/core/lib/iomgr/pollset_windows.h
+
3
−
0
View file @
4c33dba5
...
...
@@ -72,4 +72,7 @@ struct grpc_pollset {
grpc_closure
*
on_shutdown
;
};
void
grpc_pollset_global_init
(
void
);
void
grpc_pollset_global_shutdown
(
void
);
#endif
/* GRPC_CORE_LIB_IOMGR_POLLSET_WINDOWS_H */
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