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
ac433cf6
Commit
ac433cf6
authored
8 years ago
by
Ken Payson
Browse files
Options
Downloads
Patches
Plain Diff
Assert on thread creation
parent
d4143f28
No related branches found
Branches containing commit
No related tags found
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/ev_poll_posix.c
+1
-1
1 addition, 1 deletion
src/core/lib/iomgr/ev_poll_posix.c
src/core/lib/iomgr/executor.c
+2
-2
2 additions, 2 deletions
src/core/lib/iomgr/executor.c
src/core/lib/profiling/basic_timers.c
+1
-1
1 addition, 1 deletion
src/core/lib/profiling/basic_timers.c
with
4 additions
and
4 deletions
src/core/lib/iomgr/ev_poll_posix.c
+
1
−
1
View file @
ac433cf6
...
...
@@ -1421,7 +1421,7 @@ static int cvfd_poll(struct pollfd *fds, nfds_t nfds, int timeout) {
g_cvfds
.
pollcount
++
;
opt
=
gpr_thd_options_default
();
gpr_thd_options_set_detached
(
&
opt
);
gpr_thd_new
(
&
t_id
,
&
run_poll
,
pargs
,
&
opt
);
GPR_ASSERT
(
gpr_thd_new
(
&
t_id
,
&
run_poll
,
pargs
,
&
opt
)
)
;
// We want the poll() thread to trigger the deadline, so wait forever here
gpr_cv_wait
(
pollcv
,
&
g_cvfds
.
mu
,
gpr_inf_future
(
GPR_CLOCK_MONOTONIC
));
if
(
gpr_atm_no_barrier_load
(
&
pargs
->
status
)
==
COMPLETED
)
{
...
...
This diff is collapsed.
Click to expand it.
src/core/lib/iomgr/executor.c
+
2
−
2
View file @
ac433cf6
...
...
@@ -115,8 +115,8 @@ static void maybe_spawn_locked() {
/* All previous instances of the thread should have been joined at this point.
* Spawn time! */
g_executor
.
busy
=
1
;
gpr_thd_new
(
&
g_executor
.
tid
,
closure_exec_thread_func
,
NULL
,
&
g_executor
.
options
);
GPR_ASSERT
(
gpr_thd_new
(
&
g_executor
.
tid
,
closure_exec_thread_func
,
NULL
,
&
g_executor
.
options
)
)
;
g_executor
.
pending_join
=
1
;
}
...
...
This diff is collapsed.
Click to expand it.
src/core/lib/profiling/basic_timers.c
+
1
−
1
View file @
ac433cf6
...
...
@@ -218,7 +218,7 @@ void gpr_timers_set_log_filename(const char *filename) {
static
void
init_output
()
{
gpr_thd_options
options
=
gpr_thd_options_default
();
gpr_thd_options_set_joinable
(
&
options
);
gpr_thd_new
(
&
g_writing_thread
,
writing_thread
,
NULL
,
&
options
);
GPR_ASSERT
(
gpr_thd_new
(
&
g_writing_thread
,
writing_thread
,
NULL
,
&
options
)
)
;
atexit
(
finish_writing
);
}
...
...
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