Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
828223bf
Commit
828223bf
authored
5 years ago
by
Brad Kittenbrink
Committed by
Nat Goodspeed
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implemented some code review suggested cleanups.
parent
6ffbed48
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llmessage/llcoproceduremanager.cpp
+3
-4
3 additions, 4 deletions
indra/llmessage/llcoproceduremanager.cpp
with
3 additions
and
4 deletions
indra/llmessage/llcoproceduremanager.cpp
+
3
−
4
View file @
828223bf
...
...
@@ -112,7 +112,6 @@ class LLCoprocedurePool: private boost::noncopyable
// we use a deque here rather than std::queue since we want to be able to
// iterate through the queue and potentially erase an entry from the middle.
// TODO - make this queue be backed by an unbuffered_channel
typedef
boost
::
fibers
::
unbuffered_channel
<
QueuedCoproc
::
ptr_t
>
CoprocQueue_t
;
typedef
std
::
map
<
LLUUID
,
LLCoreHttpUtil
::
HttpCoroutineAdapter
::
ptr_t
>
ActiveCoproc_t
;
...
...
@@ -152,7 +151,7 @@ LLCoprocedureManager::poolPtr_t LLCoprocedureManager::initializePool(const std::
LL_ERRS_IF
(
poolName
.
empty
(),
"CoprocedureManager"
)
<<
"Poolname must not be empty"
<<
LL_ENDL
;
if
(
mPropertyQueryFn
&&
!
mPropertyQueryFn
.
empty
()
)
if
(
mPropertyQueryFn
)
{
size
=
mPropertyQueryFn
(
keyName
);
}
...
...
@@ -164,7 +163,7 @@ LLCoprocedureManager::poolPtr_t LLCoprocedureManager::initializePool(const std::
auto
it
=
DefaultPoolSizes
.
find
(
poolName
);
size
=
(
it
!=
DefaultPoolSizes
.
end
())
?
it
->
second
:
DEFAULT_POOL_SIZE
;
if
(
mPropertyDefineFn
&&
!
mPropertyDefineFn
.
empty
()
)
if
(
mPropertyDefineFn
)
{
mPropertyDefineFn
(
keyName
,
size
,
"Coroutine Pool size for "
+
poolName
);
}
...
...
@@ -352,7 +351,7 @@ void LLCoprocedurePool::coprocedureInvokerCoro(LLCoreHttpUtil::HttpCoroutineAdap
{
if
(
status
==
boost
::
fibers
::
channel_op_status
::
timeout
)
{
LL_INFOS
()
<<
"pool '"
<<
mPoolName
<<
"' stalled."
<<
LL_ENDL
;
LL_INFOS
_ONCE
()
<<
"pool '"
<<
mPoolName
<<
"' stalled."
<<
LL_ENDL
;
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment