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

Issue 1398473004: Changed queue implementation to the proposed vector-based solution. (Closed)

Created:
5 years, 2 months ago by peah-webrtc
Modified:
5 years ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, hlundin-webrtc, aluebs-webrtc, bjornv1, ivoc, terelius
Base URL:
https://chromium.googlesource.com/external/webrtc.git@lock_unittest_CL
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Changed queue implementation to the proposed vector-based solution. Added unit tests. BUG=webrtc:5099 TBR=hlundin-webrtc

Patch Set 1 #

Total comments: 135

Patch Set 2 : Changes in response to reviewer comments #

Total comments: 56

Patch Set 3 : Added changes in response to reviewer comments. Added further unit tests and reduce the size of the… #

Total comments: 65

Patch Set 4 : Updated the queue and test implementations #

Total comments: 41

Patch Set 5 : Changes in response to comments, mainly revised comments and naming #

Total comments: 18

Patch Set 6 : Changed verifier implementation, added/changed unittests, made changes in response to reviewer comm… #

Patch Set 7 : Changed thread-based unittests to be fully deterministic #

Total comments: 25

Patch Set 8 : Changed code comments. Removed redundant unittest code #

Total comments: 32

Patch Set 9 : Changes to code comments, unittest changes, annotation changes, various minor changes #

Total comments: 32

Patch Set 10 : Added unittest for the Clear function. Did lots of renaming. Extended the test for full queue to en… #

Total comments: 52

Patch Set 11 : Added dchecks, minor code comment updates. #

Total comments: 2

Patch Set 12 : Removed redundant DCHECKs #

Total comments: 2

Patch Set 13 : Unittest updates and other changes in response to comments #

Total comments: 2

Patch Set 14 : Removed and added DCHECKS so that they make sense #

Patch Set 15 : Added copy assignment constructor together with unittest. #

Patch Set 16 : Made the copy assignment operator thread safe #

Total comments: 8

Patch Set 17 : Removed the copy assignment operator together with related tests #

Patch Set 18 : Merge from master #

Patch Set 19 : Removed old code for integer verifier and added missing statement delimiter #

Patch Set 20 : Latest merged code #

Patch Set 21 : Merge from other CLs in the list #

Patch Set 22 : Merge from previous CL in CL chain #

Total comments: 6

Patch Set 23 : Comment changes and modified the order of parameters for one of the constructors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, -0 lines) Patch
M webrtc/common_audio/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/common_audio/common_audio.gyp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A webrtc/common_audio/swap_queue.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +210 lines, -0 lines 0 comments Download
A webrtc/common_audio/swap_queue_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +225 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 69 (6 generated)
peah-webrtc
Changed the queue implementation to the proposed vector-based solution. Added unit tests for the tests.
5 years, 2 months ago (2015-10-09 11:17:44 UTC) #2
the sun
https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/swapped_nonblocking_queue.h File webrtc/modules/audio_processing/swapped_nonblocking_queue.h (right): https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/swapped_nonblocking_queue.h#newcode33 webrtc/modules/audio_processing/swapped_nonblocking_queue.h:33: explicit SwappedNonBlockingQueue<T>(size_t initial_size, const T& initializer) Remove "explicit". "initial_size" ...
5 years, 2 months ago (2015-10-09 12:09:55 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/swapped_nonblocking_queue.h File webrtc/modules/audio_processing/swapped_nonblocking_queue.h (right): https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/swapped_nonblocking_queue.h#newcode21 webrtc/modules/audio_processing/swapped_nonblocking_queue.h:21: // This class is to be used as a ...
5 years, 2 months ago (2015-10-10 10:16:57 UTC) #4
The Sun (google.com)
https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/swapped_nonblocking_queue.h File webrtc/modules/audio_processing/swapped_nonblocking_queue.h (right): https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/swapped_nonblocking_queue.h#newcode26 webrtc/modules/audio_processing/swapped_nonblocking_queue.h:26: class SwappedNonBlockingQueue { On 2015/10/10 10:16:56, kwiberg-webrtc wrote: > ...
5 years, 2 months ago (2015-10-10 14:00:54 UTC) #5
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/swapped_nonblocking_queue.h File webrtc/modules/audio_processing/swapped_nonblocking_queue.h (right): https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/swapped_nonblocking_queue.h#newcode100 webrtc/modules/audio_processing/swapped_nonblocking_queue.h:100: rtc::CriticalSection crit_queue_; On 2015/10/10 14:00:54, solenberg wrote: > On ...
5 years, 2 months ago (2015-10-10 17:48:40 UTC) #6
peah-webrtc
Thanks for the great and detailed review!!!! Regarding <It might just be me, but I ...
5 years, 2 months ago (2015-10-12 13:01:08 UTC) #7
peah-webrtc
Thanks for the great and detailed review!!!! Regarding <It might just be me, but I ...
5 years, 2 months ago (2015-10-12 13:01:12 UTC) #8
kwiberg-webrtc
Yes, I think it would be fine to keep the existing test in addition to ...
5 years, 2 months ago (2015-10-12 14:05:48 UTC) #9
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/20001/webrtc/modules/audio_processing/swap_queue.h File webrtc/modules/audio_processing/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/20001/webrtc/modules/audio_processing/swap_queue.h#newcode52 webrtc/modules/audio_processing/swap_queue.h:52: // standard library. Actually, I realized on the way ...
5 years, 2 months ago (2015-10-12 15:39:10 UTC) #10
hlundin-webrtc
Here are some late comments for patch set 1. Please, disregard any that are no ...
5 years, 2 months ago (2015-10-13 06:37:58 UTC) #11
The Sun (google.com)
https://codereview.webrtc.org/1398473004/diff/20001/webrtc/modules/audio_processing/swap_queue.h File webrtc/modules/audio_processing/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/20001/webrtc/modules/audio_processing/swap_queue.h#newcode25 webrtc/modules/audio_processing/swap_queue.h:25: // It is safe to access the class concurrently ...
5 years, 2 months ago (2015-10-13 07:53:05 UTC) #12
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/20001/webrtc/modules/audio_processing/swap_queue.h File webrtc/modules/audio_processing/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/20001/webrtc/modules/audio_processing/swap_queue.h#newcode36 webrtc/modules/audio_processing/swap_queue.h:36: class SwapQueue { On 2015/10/13 07:53:05, solenberg wrote: > ...
5 years, 2 months ago (2015-10-13 09:59:53 UTC) #13
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/BUILD.gn File webrtc/modules/audio_processing/BUILD.gn (right): https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/BUILD.gn#newcode91 webrtc/modules/audio_processing/BUILD.gn:91: "swapped_nonblocking_queue.h", On 2015/10/13 06:37:57, hlundin-webrtc wrote: > I wonder ...
5 years, 2 months ago (2015-10-13 11:56:13 UTC) #14
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/BUILD.gn File webrtc/modules/audio_processing/BUILD.gn (right): https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/BUILD.gn#newcode91 webrtc/modules/audio_processing/BUILD.gn:91: "swapped_nonblocking_queue.h", On 2015/10/13 11:56:11, peah-webrtc wrote: > On 2015/10/13 ...
5 years, 2 months ago (2015-10-13 12:09:07 UTC) #15
the sun
On 2015/10/13 12:09:07, kwiberg-webrtc wrote: > https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/BUILD.gn > File webrtc/modules/audio_processing/BUILD.gn (right): > > https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/BUILD.gn#newcode91 > ...
5 years, 2 months ago (2015-10-13 12:12:55 UTC) #16
the sun
https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/BUILD.gn File webrtc/modules/audio_processing/BUILD.gn (right): https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/BUILD.gn#newcode91 webrtc/modules/audio_processing/BUILD.gn:91: "swapped_nonblocking_queue.h", On 2015/10/13 12:09:07, kwiberg-webrtc wrote: > On 2015/10/13 ...
5 years, 2 months ago (2015-10-13 12:34:27 UTC) #17
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue.h#newcode12 webrtc/common_audio/swap_queue.h:12: #define WEBRTC_MODULES_SWAPPED_QUEUE_H_ Still behind the times! https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue.h#newcode30 webrtc/common_audio/swap_queue.h:30: // ...
5 years, 2 months ago (2015-10-13 13:54:24 UTC) #18
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/20001/webrtc/modules/audio_processing/swap_queue.h File webrtc/modules/audio_processing/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/20001/webrtc/modules/audio_processing/swap_queue.h#newcode47 webrtc/modules/audio_processing/swap_queue.h:47: } On 2015/10/13 12:34:26, the sun wrote: > On ...
5 years, 2 months ago (2015-10-13 14:08:36 UTC) #19
The Sun (google.com)
https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue.h#newcode46 webrtc/common_audio/swap_queue.h:46: // to be of a special size, care must ...
5 years, 2 months ago (2015-10-13 14:19:45 UTC) #20
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue.h#newcode12 webrtc/common_audio/swap_queue.h:12: #define WEBRTC_MODULES_SWAPPED_QUEUE_H_ On 2015/10/13 13:54:23, kwiberg-webrtc wrote: > Still ...
5 years, 2 months ago (2015-10-14 12:16:48 UTC) #21
the sun
https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue_unittest.cc File webrtc/common_audio/swap_queue_unittest.cc (right): https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue_unittest.cc#newcode35 webrtc/common_audio/swap_queue_unittest.cc:35: random_numbers_[k] = rand(); Note that it doesn't matter that ...
5 years, 2 months ago (2015-10-14 13:05:21 UTC) #22
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue.h#newcode74 webrtc/common_audio/swap_queue.h:74: // } On 2015/10/14 12:16:47, peah-webrtc wrote: > On ...
5 years, 2 months ago (2015-10-14 14:10:16 UTC) #23
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue_unittest.cc File webrtc/common_audio/swap_queue_unittest.cc (right): https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue_unittest.cc#newcode35 webrtc/common_audio/swap_queue_unittest.cc:35: random_numbers_[k] = rand(); On 2015/10/14 13:05:21, the sun wrote: ...
5 years, 2 months ago (2015-10-15 07:35:00 UTC) #24
the sun
https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue_unittest.cc File webrtc/common_audio/swap_queue_unittest.cc (right): https://codereview.webrtc.org/1398473004/diff/40001/webrtc/common_audio/swap_queue_unittest.cc#newcode35 webrtc/common_audio/swap_queue_unittest.cc:35: random_numbers_[k] = rand(); On 2015/10/15 07:34:59, peah-webrtc wrote: > ...
5 years, 2 months ago (2015-10-15 08:44:01 UTC) #25
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/60001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/60001/webrtc/common_audio/swap_queue.h#newcode60 webrtc/common_audio/swap_queue.h:60: // Default item invariance verifier callback function. On 2015/10/15 ...
5 years, 2 months ago (2015-10-15 08:55:41 UTC) #26
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h#newcode80 webrtc/common_audio/swap_queue.h:80: // found in the unit tests. On 2015/10/15 08:55:40, ...
5 years, 2 months ago (2015-10-15 12:47:37 UTC) #27
the sun
https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h#newcode132 webrtc/common_audio/swap_queue.h:132: using std::swap; Maybe a comment here why using std::swap ...
5 years, 2 months ago (2015-10-19 10:36:12 UTC) #28
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h#newcode132 webrtc/common_audio/swap_queue.h:132: using std::swap; On 2015/10/19 10:36:12, the sun wrote: > ...
5 years, 2 months ago (2015-10-19 10:47:17 UTC) #29
pbos-webrtc
On 2015/10/19 10:47:17, kwiberg-webrtc wrote: > https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h > File webrtc/common_audio/swap_queue.h (right): > > https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h#newcode132 > ...
5 years, 2 months ago (2015-10-19 11:13:36 UTC) #30
kwiberg-webrtc
On 2015/10/19 11:13:36, pbos-webrtc wrote: > On 2015/10/19 10:47:17, kwiberg-webrtc wrote: > > > https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h ...
5 years, 2 months ago (2015-10-19 11:26:13 UTC) #31
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/80001/webrtc/common_audio/swap_queue.h#newcode80 webrtc/common_audio/swap_queue.h:80: // found in the unit tests. On 2015/10/15 12:47:37, ...
5 years, 2 months ago (2015-10-23 09:11:19 UTC) #34
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/BUILD.gn File webrtc/modules/audio_processing/BUILD.gn (right): https://codereview.webrtc.org/1398473004/diff/1/webrtc/modules/audio_processing/BUILD.gn#newcode91 webrtc/modules/audio_processing/BUILD.gn:91: "swapped_nonblocking_queue.h", On 2015/10/13 12:34:26, the sun wrote: > On ...
5 years, 1 month ago (2015-10-26 08:56:57 UTC) #35
the sun
https://codereview.webrtc.org/1398473004/diff/120001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/120001/webrtc/common_audio/swap_queue.h#newcode26 webrtc/common_audio/swap_queue.h:26: // from the other end. The queue can be ...
5 years, 1 month ago (2015-10-26 15:16:21 UTC) #36
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/120001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/120001/webrtc/common_audio/swap_queue.h#newcode26 webrtc/common_audio/swap_queue.h:26: // from the other end. The queue can be ...
5 years, 1 month ago (2015-10-26 22:27:02 UTC) #37
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/140001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/140001/webrtc/common_audio/swap_queue.h#newcode41 webrtc/common_audio/swap_queue.h:41: // // Also heap. Since it doesn't fit on ...
5 years, 1 month ago (2015-10-27 12:05:14 UTC) #38
the sun
https://codereview.webrtc.org/1398473004/diff/120001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/120001/webrtc/common_audio/swap_queue.h#newcode104 webrtc/common_audio/swap_queue.h:104: template <typename T, typename QueueItemVerifier = SwapQueueItemVerifier<T> > On ...
5 years, 1 month ago (2015-10-27 13:51:33 UTC) #39
the sun
https://codereview.webrtc.org/1398473004/diff/140001/webrtc/common_audio/swap_queue_unittest.cc File webrtc/common_audio/swap_queue_unittest.cc (right): https://codereview.webrtc.org/1398473004/diff/140001/webrtc/common_audio/swap_queue_unittest.cc#newcode62 webrtc/common_audio/swap_queue_unittest.cc:62: bool InvarianceVerifierFunction(const std::vector<int>& v) { You call this ItemVerifier ...
5 years, 1 month ago (2015-10-27 16:18:48 UTC) #40
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/120001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/120001/webrtc/common_audio/swap_queue.h#newcode104 webrtc/common_audio/swap_queue.h:104: template <typename T, typename QueueItemVerifier = SwapQueueItemVerifier<T> > On ...
5 years, 1 month ago (2015-10-29 06:15:15 UTC) #41
the sun
https://codereview.webrtc.org/1398473004/diff/160001/webrtc/common_audio/swap_queue_unittest.cc File webrtc/common_audio/swap_queue_unittest.cc (right): https://codereview.webrtc.org/1398473004/diff/160001/webrtc/common_audio/swap_queue_unittest.cc#newcode17 webrtc/common_audio/swap_queue_unittest.cc:17: #include "webrtc/common_audio/swap_queue.h" Include swap_queue.h first, since we don't have ...
5 years, 1 month ago (2015-10-29 09:33:05 UTC) #42
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/160001/webrtc/common_audio/swap_queue_unittest.cc File webrtc/common_audio/swap_queue_unittest.cc (right): https://codereview.webrtc.org/1398473004/diff/160001/webrtc/common_audio/swap_queue_unittest.cc#newcode17 webrtc/common_audio/swap_queue_unittest.cc:17: #include "webrtc/common_audio/swap_queue.h" On 2015/10/29 09:33:04, the sun wrote: > ...
5 years, 1 month ago (2015-10-29 12:32:43 UTC) #43
the sun
Great to see this coming together! LGTM with a few more nits. https://codereview.webrtc.org/1398473004/diff/180001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h ...
5 years, 1 month ago (2015-10-29 12:48:18 UTC) #44
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/180001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/180001/webrtc/common_audio/swap_queue.h#newcode28 webrtc/common_audio/swap_queue.h:28: bool NoopSwapQueueVerifierFunction(const T&) { On 2015/10/29 12:48:18, the sun ...
5 years, 1 month ago (2015-10-29 13:35:56 UTC) #45
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/180001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/180001/webrtc/common_audio/swap_queue.h#newcode28 webrtc/common_audio/swap_queue.h:28: bool NoopSwapQueueVerifierFunction(const T&) { On 2015/10/29 12:48:18, the sun ...
5 years, 1 month ago (2015-10-29 13:35:56 UTC) #46
peah-webrtc
5 years, 1 month ago (2015-10-29 13:36:00 UTC) #47
the sun
https://codereview.webrtc.org/1398473004/diff/200001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/200001/webrtc/common_audio/swap_queue.h#newcode180 webrtc/common_audio/swap_queue.h:180: RTC_DCHECK_GE(next_write_index_, 0U); it's unnecessary to make sure an unsigned ...
5 years, 1 month ago (2015-10-29 13:40:05 UTC) #48
peah-webrtc
5 years, 1 month ago (2015-10-29 14:08:46 UTC) #49
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/200001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/200001/webrtc/common_audio/swap_queue.h#newcode180 webrtc/common_audio/swap_queue.h:180: RTC_DCHECK_GE(next_write_index_, 0U); On 2015/10/29 13:40:05, the sun wrote: > ...
5 years, 1 month ago (2015-10-29 14:09:14 UTC) #50
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/180001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/180001/webrtc/common_audio/swap_queue.h#newcode26 webrtc/common_audio/swap_queue.h:26: // Default item invariance verifier callback function. By virtue ...
5 years, 1 month ago (2015-10-29 14:40:36 UTC) #51
kwiberg-webrtc
https://codereview.webrtc.org/1398473004/diff/220001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/220001/webrtc/common_audio/swap_queue.h#newcode146 webrtc/common_audio/swap_queue.h:146: RTC_DCHECK_LE(num_elements_, queue_.size()); You don't check that write index - ...
5 years, 1 month ago (2015-10-29 14:54:01 UTC) #52
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/180001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/180001/webrtc/common_audio/swap_queue.h#newcode26 webrtc/common_audio/swap_queue.h:26: // Default item invariance verifier callback function. On 2015/10/29 ...
5 years, 1 month ago (2015-10-29 15:24:53 UTC) #53
the sun
https://codereview.webrtc.org/1398473004/diff/240001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/240001/webrtc/common_audio/swap_queue.h#newcode179 webrtc/common_audio/swap_queue.h:179: Why test both read and write, but not num_elements? ...
5 years, 1 month ago (2015-10-29 15:31:09 UTC) #54
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/240001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/240001/webrtc/common_audio/swap_queue.h#newcode179 webrtc/common_audio/swap_queue.h:179: On 2015/10/29 15:31:09, the sun wrote: > Why test ...
5 years, 1 month ago (2015-10-29 16:00:02 UTC) #55
peah-webrtc
Due to the need for reinitializing the queue kwiberg proposed that the queue should support ...
5 years, 1 month ago (2015-10-29 23:40:47 UTC) #56
peah-webrtc
Updated the copy assignment to be thread safe.
5 years, 1 month ago (2015-10-30 07:57:17 UTC) #57
the sun
https://codereview.webrtc.org/1398473004/diff/300001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/300001/webrtc/common_audio/swap_queue.h#newcode109 webrtc/common_audio/swap_queue.h:109: SwapQueue& operator=(const SwapQueue& o) { 1. This isn't a ...
5 years, 1 month ago (2015-10-30 09:19:47 UTC) #58
kwiberg-webrtc
lgtm with the ill-advised assignment stuff excised https://codereview.webrtc.org/1398473004/diff/300001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/300001/webrtc/common_audio/swap_queue.h#newcode109 webrtc/common_audio/swap_queue.h:109: SwapQueue& operator=(const ...
5 years, 1 month ago (2015-10-30 09:27:29 UTC) #59
peah-webrtc
Reverted the copy assingment operator. If I still have LGTM, I'll commit. https://codereview.webrtc.org/1398473004/diff/300001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h ...
5 years, 1 month ago (2015-10-30 09:42:16 UTC) #60
kwiberg-webrtc
For the record (although I've said it before): lgtm
5 years, 1 month ago (2015-11-01 11:04:53 UTC) #62
the sun
Still LGTM. https://codereview.webrtc.org/1398473004/diff/420001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/420001/webrtc/common_audio/swap_queue.h#newcode88 webrtc/common_audio/swap_queue.h:88: // item verification functor. nit: "Same as ...
5 years, 1 month ago (2015-11-09 11:55:19 UTC) #63
peah-webrtc
https://codereview.webrtc.org/1398473004/diff/420001/webrtc/common_audio/swap_queue.h File webrtc/common_audio/swap_queue.h (right): https://codereview.webrtc.org/1398473004/diff/420001/webrtc/common_audio/swap_queue.h#newcode88 webrtc/common_audio/swap_queue.h:88: // item verification functor. On 2015/11/09 11:55:19, the sun ...
5 years, 1 month ago (2015-11-09 12:32:27 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398473004/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398473004/440001
5 years, 1 month ago (2015-11-09 12:32:43 UTC) #67
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/48407f71221635aec2d2a382ee24dea28e4f69cf Cr-Commit-Position: refs/heads/master@{#10562}
5 years, 1 month ago (2015-11-09 13:25:08 UTC) #68
commit-bot: I haz the power
5 years, 1 month ago (2015-11-09 13:29:13 UTC) #69
Message was sent while issue was closed.
Committed patchset #23 (id:440001)

Powered by Google App Engine
This is Rietveld 408576698