Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
frameworks_native
Commits
2be113a2
Commit
2be113a2
authored
9 years ago
by
Andreas Gampe
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "Binder: Add log output in IPCThreadState::self()"
parents
ac4728f8
f31a3eb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
libs/binder/IPCThreadState.cpp
libs/binder/IPCThreadState.cpp
+8
-2
No files found.
libs/binder/IPCThreadState.cpp
View file @
2be113a2
...
...
@@ -287,12 +287,18 @@ restart:
return
new
IPCThreadState
;
}
if
(
gShutdown
)
return
NULL
;
if
(
gShutdown
)
{
ALOGW
(
"Calling IPCThreadState::self() during shutdown is dangerous, expect a crash.
\n
"
);
return
NULL
;
}
pthread_mutex_lock
(
&
gTLSMutex
);
if
(
!
gHaveTLS
)
{
if
(
pthread_key_create
(
&
gTLS
,
threadDestructor
)
!=
0
)
{
int
key_create_value
=
pthread_key_create
(
&
gTLS
,
threadDestructor
);
if
(
key_create_value
!=
0
)
{
pthread_mutex_unlock
(
&
gTLSMutex
);
ALOGW
(
"IPCThreadState::self() unable to create TLS key, expect a crash: %s
\n
"
,
strerror
(
key_create_value
));
return
NULL
;
}
gHaveTLS
=
true
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment