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
e80fc7a7
Commit
e80fc7a7
authored
10 years ago
by
Nicolas Noble
Browse files
Options
Downloads
Plain Diff
Merge pull request #778 from ctiller/mac
Fix mac build
parents
36ccead4
b5a79f62
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/support/cpu_posix.c
+2
-1
2 additions, 1 deletion
src/core/support/cpu_posix.c
with
2 additions
and
1 deletion
src/core/support/cpu_posix.c
+
2
−
1
View file @
e80fc7a7
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
#include
<string.h>
#include
<string.h>
#include
<grpc/support/log.h>
#include
<grpc/support/log.h>
#include
<grpc/support/sync.h>
static
__thread
char
magic_thread_local
;
static
__thread
char
magic_thread_local
;
...
@@ -55,7 +56,7 @@ static void init_ncpus() {
...
@@ -55,7 +56,7 @@ static void init_ncpus() {
unsigned
gpr_cpu_num_cores
(
void
)
{
unsigned
gpr_cpu_num_cores
(
void
)
{
static
gpr_once
once
=
GPR_ONCE_INIT
;
static
gpr_once
once
=
GPR_ONCE_INIT
;
gpr_once_init
(
&
once
,
init_n
um_
cpus
);
gpr_once_init
(
&
once
,
init_ncpus
);
return
ncpus
;
return
ncpus
;
}
}
...
...
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