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

Issue 24721003: Only allow one async operation on RandomAccessFile at a time. (Closed)

Created:
7 years, 2 months ago by Anders Johnsen
Modified:
7 years, 2 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Only allow one async operation on RandomAccessFile at a time. This is to make sure we never have a race-condition on the same File*/FD. For a File it should be fine, as each operation will open it's own FD to work on. BUG= R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=28088

Patch Set 1 #

Total comments: 4

Patch Set 2 : Also disallow sync calls while an async operation is scheduled. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -42 lines) Patch
M sdk/lib/io/file_impl.dart View 1 24 chunks +46 lines, -42 lines 0 comments Download
M tests/standalone/io/file_test.dart View 1 2 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Anders Johnsen
7 years, 2 months ago (2013-09-26 15:22:38 UTC) #1
Søren Gjesse
We should consider sending out a breaking change notification. As before we would just queue ...
7 years, 2 months ago (2013-09-26 18:31:19 UTC) #2
Anders Johnsen
PTAL https://codereview.chromium.org/24721003/diff/1/sdk/lib/io/file_impl.dart File sdk/lib/io/file_impl.dart (right): https://codereview.chromium.org/24721003/diff/1/sdk/lib/io/file_impl.dart#newcode856 sdk/lib/io/file_impl.dart:856: var msg = "A file operation is already ...
7 years, 2 months ago (2013-10-01 10:50:39 UTC) #3
Søren Gjesse
lgtm
7 years, 2 months ago (2013-10-01 10:52:14 UTC) #4
Anders Johnsen
7 years, 2 months ago (2013-10-01 11:23:49 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r28088 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698