Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Unified Diff: webrtc/base/base.gyp

Issue 1919733002: New task queueing primitive for async tasks: TaskQueue. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Address comments+handle error reported by tsan Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/BUILD.gn ('k') | webrtc/base/base_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/base.gyp
diff --git a/webrtc/base/base.gyp b/webrtc/base/base.gyp
index 0e6198c1c4226501b537cf01dfa1a7370384fb2b..70e6bd44e563313b28251eecd0f7967dd39c86f4 100644
--- a/webrtc/base/base.gyp
+++ b/webrtc/base/base.gyp
@@ -135,6 +135,12 @@
'swap_queue.h',
'systeminfo.cc',
'systeminfo.h',
+ 'task_queue.h',
+ 'task_queue_libevent.cc',
+ 'task_queue_gcd.cc',
+ 'task_queue_posix.cc',
+ 'task_queue_posix.h',
+ 'task_queue_win.cc',
'template_util.h',
'thread_annotations.h',
'thread_checker.h',
@@ -162,6 +168,19 @@
'logging.h',
'logging_mac.mm',
],
+ 'conditions': [
+ ['OS!="win" and OS!="mac" and OS!="ios"', {
+ 'dependencies': [
+ '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent',
+ ],
+ }],
+ ],
+ }],
+ ['OS=="mac" or OS=="ios" or OS=="win"', {
+ 'sources!': [ 'task_queue_libevent.cc' ],
+ }],
+ ['OS=="linux" or OS=="android" or OS=="win"', {
+ 'sources!': [ 'task_queue_gcd.cc' ],
}],
['OS=="mac" and build_with_chromium==0', {
'all_dependent_settings': {
« no previous file with comments | « webrtc/base/BUILD.gn ('k') | webrtc/base/base_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698