Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
folly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
folly
Commits
04223d27
Commit
04223d27
authored
Feb 05, 2013
by
Tudor Bosman
Committed by
Jordan DeLong
Mar 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typos
Test Plan: async_io_test Reviewed By: lucian@fb.com FB internal diff: D699175
parent
9547cef8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
folly/Exception.h
folly/Exception.h
+1
-1
folly/experimental/io/AsyncIO.h
folly/experimental/io/AsyncIO.h
+2
-2
folly/experimental/io/test/AsyncIOTest.cpp
folly/experimental/io/test/AsyncIOTest.cpp
+4
-4
No files found.
folly/Exception.h
View file @
04223d27
...
...
@@ -54,7 +54,7 @@ inline void checkKernelError(ssize_t ret, const char* msg) {
}
}
// Check a traditional U
in
x return code (-1 and sets errno on error), throw
// Check a traditional U
ni
x return code (-1 and sets errno on error), throw
// on error.
inline
void
checkUnixError
(
ssize_t
ret
,
const
char
*
msg
)
{
if
(
UNLIKELY
(
ret
==
-
1
))
{
...
...
folly/experimental/io/AsyncIO.h
View file @
04223d27
...
...
@@ -44,7 +44,7 @@ class AsyncIO : private boost::noncopyable {
};
/**
* Create an AsyncIO context capa
c
ble of holding at most 'capacity' pending
* Create an AsyncIO context capable of holding at most 'capacity' pending
* requests at the same time. As requests complete, others can be scheduled,
* as long as this limit is not exceeded.
*
...
...
@@ -53,7 +53,7 @@ class AsyncIO : private boost::noncopyable {
*
* If pollMode is POLLABLE, pollFd() will return a file descriptor that
* can be passed to poll / epoll / select and will become readable when
* any IOs on this A
ioReader
have completed. If you do this, you must use
* any IOs on this A
syncIO
have completed. If you do this, you must use
* pollCompleted() instead of wait() -- do not read from the pollFd()
* file descriptor directly.
*/
...
...
folly/experimental/io/test/AsyncIOTest.cpp
View file @
04223d27
...
...
@@ -114,13 +114,13 @@ TemporaryFile::~TemporaryFile() {
}
}
TemporaryFile
t
hisBinary
(
6
<<
20
);
// 6MiB
TemporaryFile
t
empFile
(
6
<<
20
);
// 6MiB
void
testReadsSerially
(
const
std
::
vector
<
TestSpec
>&
specs
,
AsyncIO
::
PollMode
pollMode
)
{
AsyncIO
aioReader
(
1
,
pollMode
);
AsyncIO
::
Op
op
;
int
fd
=
::
open
(
t
hisBinary
.
path
().
c_str
(),
O_DIRECT
|
O_RDONLY
);
int
fd
=
::
open
(
t
empFile
.
path
().
c_str
(),
O_DIRECT
|
O_RDONLY
);
PCHECK
(
fd
!=
-
1
);
SCOPE_EXIT
{
::
close
(
fd
);
...
...
@@ -147,7 +147,7 @@ void testReadsParallel(const std::vector<TestSpec>& specs,
std
::
unique_ptr
<
AsyncIO
::
Op
[]
>
ops
(
new
AsyncIO
::
Op
[
specs
.
size
()]);
std
::
vector
<
std
::
unique_ptr
<
char
[]
>>
bufs
(
specs
.
size
());
int
fd
=
::
open
(
t
hisBinary
.
path
().
c_str
(),
O_DIRECT
|
O_RDONLY
);
int
fd
=
::
open
(
t
empFile
.
path
().
c_str
(),
O_DIRECT
|
O_RDONLY
);
PCHECK
(
fd
!=
-
1
);
SCOPE_EXIT
{
::
close
(
fd
);
...
...
@@ -269,7 +269,7 @@ TEST(AsyncIO, ManyAsyncDataPollable) {
TEST
(
AsyncIO
,
NonBlockingWait
)
{
AsyncIO
aioReader
(
1
,
AsyncIO
::
NOT_POLLABLE
);
AsyncIO
::
Op
op
;
int
fd
=
::
open
(
t
hisBinary
.
path
().
c_str
(),
O_DIRECT
|
O_RDONLY
);
int
fd
=
::
open
(
t
empFile
.
path
().
c_str
(),
O_DIRECT
|
O_RDONLY
);
PCHECK
(
fd
!=
-
1
);
SCOPE_EXIT
{
::
close
(
fd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment