breakpad/src/client/ios
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
..
Breakpad.xcodeproj Update GTM and enable -Wundef and strict C++11 flags. 2014-02-26 16:14:04 +00:00
handler Fix up ~14 warnings about 'Implicit conversion loses integer precision' on iOS. 2014-02-18 22:52:02 +00:00
Breakpad.h Adding possibility for client to upload the file 2014-09-01 11:02:57 +00:00
Breakpad.mm Only release current_breakpad_ if it is defined. 2015-10-14 17:35:47 +02:00
Breakpad_Prefix.pch Create a static library to use Breakpad on iOS. 2011-11-23 16:14:35 +00:00
BreakpadController.h Adding possibility for client to upload the file 2014-09-01 11:02:57 +00:00
BreakpadController.mm There is no need to use the main queue just for perform selector. 2017-02-13 21:45:42 +00:00