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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
22887917
Commit
22887917
authored
Apr 16, 2015
by
Yuki Yugui Sonoda
Browse files
Options
Downloads
Patches
Plain Diff
Avoid implicit function declarations
parent
0afc3add
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ruby/ext/grpc/rb_completion_queue.c
+6
-3
6 additions, 3 deletions
src/ruby/ext/grpc/rb_completion_queue.c
src/ruby/ext/grpc/rb_grpc.c
+3
-2
3 additions, 2 deletions
src/ruby/ext/grpc/rb_grpc.c
with
9 additions
and
5 deletions
src/ruby/ext/grpc/rb_completion_queue.c
+
6
−
3
View file @
22887917
...
...
@@ -33,7 +33,8 @@
#include
"rb_completion_queue.h"
#include
<ruby.h>
#include
<ruby/ruby.h>
#include
<ruby/thread.h>
#include
<grpc/grpc.h>
#include
<grpc/support/time.h>
...
...
@@ -48,14 +49,16 @@ typedef struct next_call_stack {
}
next_call_stack
;
/* Calls grpc_completion_queue_next without holding the ruby GIL */
static
void
*
grpc_rb_completion_queue_next_no_gil
(
next_call_stack
*
next_call
)
{
static
void
*
grpc_rb_completion_queue_next_no_gil
(
void
*
param
)
{
next_call_stack
*
const
next_call
=
(
next_call_stack
*
)
param
;
next_call
->
event
=
grpc_completion_queue_next
(
next_call
->
cq
,
next_call
->
timeout
);
return
NULL
;
}
/* Calls grpc_completion_queue_pluck without holding the ruby GIL */
static
void
*
grpc_rb_completion_queue_pluck_no_gil
(
next_call_stack
*
next_call
)
{
static
void
*
grpc_rb_completion_queue_pluck_no_gil
(
void
*
param
)
{
next_call_stack
*
const
next_call
=
(
next_call_stack
*
)
param
;
next_call
->
event
=
grpc_completion_queue_pluck
(
next_call
->
cq
,
next_call
->
tag
,
next_call
->
timeout
);
return
NULL
;
...
...
This diff is collapsed.
Click to expand it.
src/ruby/ext/grpc/rb_grpc.c
+
3
−
2
View file @
22887917
...
...
@@ -34,7 +34,8 @@
#include
"rb_grpc.h"
#include
<math.h>
#include
<ruby.h>
#include
<ruby/ruby.h>
#include
<ruby/vm.h>
#include
<sys/time.h>
#include
<grpc/grpc.h>
...
...
@@ -244,7 +245,7 @@ void Init_grpc_time_consts() {
id_tv_nsec
=
rb_intern
(
"tv_nsec"
);
}
void
grpc_rb_shutdown
(
void
*
vm
)
{
grpc_shutdown
();
}
void
grpc_rb_shutdown
(
ruby_vm_t
*
vm
)
{
grpc_shutdown
();
}
/* Initialize the GRPC module structs */
...
...
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