breakpad/src/client
George Kola 96b79e9bf8 There is no need to use the main queue just for perform selector.
We were using the main queue to queue up a perform selector and then the code
[self sendStoredCrashReports] was immediately doing a dispatch_async.
This unnecessary thread switching is not needed.

We simplify the above logic and use dispatch_after to queue the block on
the
internal queue after a delay

Note that main queue is typically more loaded and it is better for
non-UI code
to not use the main queue. This may also help improve crash log upload.

This change also switches from @synchronized to dispatch_once as that is
faster
Reference:
http://googlemac.blogspot.com/2006/10/synchronized-swimming.html

BUG=

Change-Id: I81035149cbbf13a3058ca3a11e6efd23980f19ad
Reviewed-on: https://chromium-review.googlesource.com/441364
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
2017-02-13 21:45:42 +00:00
..
apple/Framework Mac: Add support for in-process crash reporting to Breakpad. 2014-09-15 22:48:18 +00:00
ios There is no need to use the main queue just for perform selector. 2017-02-13 21:45:42 +00:00
linux fix write() unused-result warning 2017-02-08 05:50:30 +00:00
mac fix write() unused-result warning 2017-02-08 05:50:30 +00:00
solaris/handler Use stdint types everywhere 2013-03-06 14:04:42 +00:00
windows windows: fix build on pre-Win10 systems 2017-02-11 22:36:18 +00:00
minidump_file_writer-inl.h Clean up build for 64 bit. 2010-07-19 20:43:49 +00:00
minidump_file_writer.cc Android: Workaround for ftruncate() issues. 2015-11-05 15:45:01 -08:00
minidump_file_writer.h Fix the documentation for MinidumpFileWriter::Open(). 2014-05-12 19:36:46 +00:00
minidump_file_writer_unittest.cc Turn on more warnings in ios / mac projects. 2012-09-21 07:58:25 +00:00