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

Issue 1347793005: Replace Atomic32 with webrtc/base/atomicops.h. (Closed)

Created:
5 years, 3 months ago by pbos-webrtc
Modified:
4 years, 11 months ago
Reviewers:
tommi, kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, henrika_webrtc, stefan-webrtc, tterriberry_mozilla.com, hlundin-webrtc, mflodman, perkj_webrtc, andresp
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replace Atomic32 with webrtc/base/atomicops.h. One atomic type is enough. BUG= R=kwiberg@webrtc.org, tommi@webrtc.org

Patch Set 1 #

Patch Set 2 : known platform fixes #

Patch Set 3 : more fixes #

Patch Set 4 : fix memory_pool_win #

Patch Set 5 : explicit initialization #

Patch Set 6 : convert to volatile int and use AtomicOps #

Patch Set 7 : fix typo #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -385 lines) Patch
M webrtc/call/transport_adapter.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/call/transport_adapter.cc View 1 2 3 4 5 4 chunks +7 lines, -6 lines 0 comments Download
M webrtc/modules/audio_conference_mixer/source/memory_pool_win.h View 1 2 3 4 5 8 chunks +11 lines, -11 lines 0 comments Download
M webrtc/modules/desktop_capture/mac/desktop_configuration_monitor.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/desktop_capture/shared_desktop_frame.cc View 1 2 3 4 5 2 chunks +6 lines, -8 lines 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.h View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc View 1 2 3 4 5 6 4 chunks +12 lines, -8 lines 0 comments Download
M webrtc/modules/desktop_capture/x11/shared_x_display.h View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M webrtc/modules/desktop_capture/x11/shared_x_display.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webrtc/system_wrappers/BUILD.gn View 1 2 3 4 5 4 chunks +0 lines, -11 lines 0 comments Download
M webrtc/system_wrappers/interface/atomic32.h View 1 2 3 4 5 1 chunk +0 lines, -66 lines 1 comment Download
M webrtc/system_wrappers/interface/ref_count.h View 1 2 3 4 5 2 chunks +4 lines, -6 lines 0 comments Download
D webrtc/system_wrappers/source/atomic32_mac.cc View 1 2 3 4 5 1 chunk +0 lines, -49 lines 0 comments Download
D webrtc/system_wrappers/source/atomic32_posix.cc View 1 2 3 4 5 1 chunk +0 lines, -53 lines 0 comments Download
D webrtc/system_wrappers/source/atomic32_win.cc View 1 2 3 4 5 1 chunk +0 lines, -60 lines 0 comments Download
M webrtc/system_wrappers/system_wrappers.gyp View 1 2 3 4 5 4 chunks +0 lines, -21 lines 0 comments Download
M webrtc/test/channel_transport/udp_socket2_manager_win.h View 1 2 3 4 5 3 chunks +6 lines, -5 lines 0 comments Download
M webrtc/test/channel_transport/udp_socket2_manager_win.cc View 1 2 3 4 5 6 chunks +8 lines, -7 lines 0 comments Download
M webrtc/test/channel_transport/udp_socket2_win.h View 1 2 3 4 5 4 chunks +7 lines, -5 lines 0 comments Download
M webrtc/test/channel_transport/udp_socket2_win.cc View 1 2 3 4 5 8 chunks +16 lines, -13 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 5 4 chunks +8 lines, -5 lines 0 comments Download
M webrtc/video_engine/payload_router.h View 1 2 3 4 5 3 chunks +8 lines, -4 lines 0 comments Download
M webrtc/video_engine/payload_router.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel_manager.h View 1 2 3 4 5 4 chunks +7 lines, -4 lines 0 comments Download
M webrtc/voice_engine/channel_manager.cc View 1 2 3 4 5 4 chunks +7 lines, -6 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/fixtures/after_initialization_fixture.h View 1 2 3 4 5 4 chunks +6 lines, -5 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/standard/rtp_rtcp_extensions.cc View 1 2 3 4 5 4 chunks +7 lines, -7 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/standard/rtp_rtcp_test.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voice_engine_impl.h View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M webrtc/voice_engine/voice_engine_impl.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (14 generated)
pbos-webrtc
known platform fixes
5 years, 3 months ago (2015-09-17 12:47:53 UTC) #1
pbos-webrtc
more fixes
5 years, 3 months ago (2015-09-17 12:57:58 UTC) #2
pbos-webrtc
fix memory_pool_win
5 years, 3 months ago (2015-09-17 13:03:47 UTC) #3
pbos-webrtc
explicit initialization
5 years, 3 months ago (2015-09-24 17:35:02 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1347793005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1347793005/80001
5 years, 3 months ago (2015-09-24 18:02:15 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/936)
5 years, 3 months ago (2015-09-24 18:08:29 UTC) #8
pbos-webrtc
convert to volatile int and use AtomicOps
5 years, 2 months ago (2015-09-25 14:50:25 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1347793005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1347793005/100001
5 years, 2 months ago (2015-09-25 14:51:02 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_x64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/9618)
5 years, 2 months ago (2015-09-25 14:54:09 UTC) #15
pbos-webrtc
PTAL, I suggest you review it in three steps (the way I converted it): PS1-4 ...
5 years, 2 months ago (2015-09-25 14:57:06 UTC) #16
pbos-webrtc
fix typo again
5 years, 2 months ago (2015-09-25 14:57:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1347793005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1347793005/120001
5 years, 2 months ago (2015-09-25 14:58:57 UTC) #21
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 2 months ago (2015-09-25 14:59:01 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1347793005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1347793005/120001
5 years, 2 months ago (2015-09-25 14:59:53 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
5 years, 2 months ago (2015-09-25 17:00:11 UTC) #27
kwiberg-webrtc
5 years, 1 month ago (2015-11-01 03:05:55 UTC) #29
While I sympathize with wanting to reduce the number of types that do the same
thing, I must say that going from a dedicated Atomic32 type to volatile int
seems like a definite step backwards. It's going to be *very* easy to introduce
subtle bugs by accidentally treating an atomic volatile int as just an int.

If changing atomicops.h is an option, I'd suggest doing so first. However, it's
also probably worth first looking into how far away we are from being able to
use the atomics from the C++11 standard library.

(FWIW, I looked through the diff and found nothing else to complain about.)

https://codereview.webrtc.org/1347793005/diff/120001/webrtc/system_wrappers/i...
File webrtc/system_wrappers/interface/atomic32.h (left):

https://codereview.webrtc.org/1347793005/diff/120001/webrtc/system_wrappers/i...
webrtc/system_wrappers/interface/atomic32.h:66: #endif  //
WEBRTC_SYSTEM_WRAPPERS_INTERFACE_ATOMIC32_H_
You make this file empty; shouldn't it be deleted?

Powered by Google App Engine
This is Rietveld 408576698