Chromium Code Reviews
Description[Cronet] Make StartNetLog and StopNetLog synchronous in Cronet
CronetEngine.StartNetLogToFile and StopNetLog post asynchronous tasks to the
network thread. This results truncated logs if executing those tasks is slow on
the network thread. Since NetLog is a global and thread-safe, this CL creates
and tears down WriteToFileNetLogObserver on the calling Java thread. The access
to WriteToFileNetLogObserver is protected by a lock to ensure thread safety.
BUG=617632
Committed: https://crrev.com/2a0656e9ea5eac86f6dedbc9ea733c6b95b58d04
Cr-Commit-Position: refs/heads/master@{#398612}
Patch Set 1 #Patch Set 2 : self review #
Messages
Total messages: 8 (3 generated)
|
||||||||||||||||||||||||||||