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
534ce4eb
Commit
534ce4eb
authored
9 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Fixes
parent
2e190363
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/core/iomgr/sockaddr_win32.h
+3
-1
3 additions, 1 deletion
src/core/iomgr/sockaddr_win32.h
src/core/iomgr/socket_windows.c
+3
-1
3 additions, 1 deletion
src/core/iomgr/socket_windows.c
src/core/support/stack_lockfree.c
+4
-4
4 additions, 4 deletions
src/core/support/stack_lockfree.c
with
10 additions
and
6 deletions
src/core/iomgr/sockaddr_win32.h
+
3
−
1
View file @
534ce4eb
...
@@ -34,8 +34,10 @@
...
@@ -34,8 +34,10 @@
#ifndef GRPC_CORE_IOMGR_SOCKADDR_WIN32_H
#ifndef GRPC_CORE_IOMGR_SOCKADDR_WIN32_H
#define GRPC_CORE_IOMGR_SOCKADDR_WIN32_H
#define GRPC_CORE_IOMGR_SOCKADDR_WIN32_H
#include
<mswsock.h>
#include
<winsock2.h>
#include
<winsock2.h>
#include
<ws2tcpip.h>
#include
<ws2tcpip.h>
// must be included after the above
#include
<mswsock.h>
#endif
/* GRPC_CORE_IOMGR_SOCKADDR_WIN32_H */
#endif
/* GRPC_CORE_IOMGR_SOCKADDR_WIN32_H */
This diff is collapsed.
Click to expand it.
src/core/iomgr/socket_windows.c
+
3
−
1
View file @
534ce4eb
...
@@ -35,9 +35,11 @@
...
@@ -35,9 +35,11 @@
#ifdef GPR_WINSOCK_SOCKET
#ifdef GPR_WINSOCK_SOCKET
#include
<mswsock.h>
#include
<winsock2.h>
#include
<winsock2.h>
// must be included after winsock2.h
#include
<mswsock.h>
#include
<grpc/support/alloc.h>
#include
<grpc/support/alloc.h>
#include
<grpc/support/log.h>
#include
<grpc/support/log.h>
#include
<grpc/support/log_win32.h>
#include
<grpc/support/log_win32.h>
...
...
This diff is collapsed.
Click to expand it.
src/core/support/stack_lockfree.c
+
4
−
4
View file @
534ce4eb
...
@@ -64,10 +64,10 @@ typedef union lockfree_node {
...
@@ -64,10 +64,10 @@ typedef union lockfree_node {
struct
lockfree_node_contents
contents
;
struct
lockfree_node_contents
contents
;
}
lockfree_node
;
}
lockfree_node
;
#define ENTRY_ALIGNMENT_BITS 3
/* make sure that entries aligned to 8-bytes */
/* make sure that entries aligned to 8-bytes */
#define
INVALID_ENTRY_INDEX \
#define
ENTRY_ALIGNMENT_BITS 3
((1 << 16) - 1)
/* reserve this entry as invalid
\
/* reserve this entry as invalid
*/
*/
#define INVALID_ENTRY_INDEX ((1 << 16) - 1)
struct
gpr_stack_lockfree
{
struct
gpr_stack_lockfree
{
lockfree_node
*
entries
;
lockfree_node
*
entries
;
...
...
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