Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
cee778db
Commit
cee778db
authored
Sep 22, 2016
by
Tom MacWright
Committed by
GitHub
Sep 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #705 from indutny/fix/race-in-async-h
async: remove racey `uv_ref()`/`uv_unref()`
parents
7322ea71
553c6eaf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
async.h
src/async.h
+0
-11
No files found.
src/async.h
View file @
cee778db
...
...
@@ -36,11 +36,6 @@ public:
rows
.
swap
(
async
->
data
);
NODE_SQLITE3_MUTEX_UNLOCK
(
&
async
->
mutex
)
for
(
unsigned
int
i
=
0
,
size
=
rows
.
size
();
i
<
size
;
i
++
)
{
#if NODE_VERSION_AT_LEAST(0, 7, 9)
uv_unref
((
uv_handle_t
*
)
&
async
->
watcher
);
#else
uv_unref
(
uv_default_loop
());
#endif
async
->
callback
(
async
->
parent
,
rows
[
i
]);
}
}
...
...
@@ -61,12 +56,6 @@ public:
}
void
add
(
Item
*
item
)
{
// Make sure node runs long enough to deliver the messages.
#if NODE_VERSION_AT_LEAST(0, 7, 9)
uv_ref
((
uv_handle_t
*
)
&
watcher
);
#else
uv_ref
(
uv_default_loop
());
#endif
NODE_SQLITE3_MUTEX_LOCK
(
&
mutex
);
data
.
push_back
(
item
);
NODE_SQLITE3_MUTEX_UNLOCK
(
&
mutex
)
...
...
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