Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3d053dbb
Commit
3d053dbb
authored
Apr 30, 2019
by
antirez
Browse files
Threaded IO: handleClientsWithPendingReadsUsingThreads top comment.
parent
5baeb14c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
3d053dbb
...
...
@@ -2734,6 +2734,12 @@ int postponeClientRead(client *c) {
}
}
/* When threaded I/O is also enabled for the reading + parsing side, the
* readable handler will just put normal clients into a queue of clients to
* process (instead of serving them synchronously). This function runs
* the queue using the I/O threads, and process them in order to accumulate
* the reads in the buffers, and also parse the first command available
* rendering it in the client structures. */
int
handleClientsWithPendingReadsUsingThreads
(
void
)
{
if
(
!
io_threads_active
||
!
server
.
io_threads_do_reads
)
return
0
;
int
processed
=
listLength
(
server
.
clients_pending_read
);
...
...
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