-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: join all started threads Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * fix: logger preparation for tests Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * feature: tsan alert suppression list Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * feature: logging thread pool lifetime Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * refactor: strict type of thread pool for rpc Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * refactor: separate thread pool and thread handler Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * refactor: rpc thread pool injection Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * refactor: extract approval distribution error Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * refactor: strict type of thread pool for pvf * refactor: strict type of thread pool for disputes * refactor: strict type of thread pool for grandpa * refactor: strict type of thread pool for off-chain workers Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * refactor: strict type of thread pool for approval distribution Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * refactor: strict type of thread pool of workers Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * refactor: remove ability to inject basic thread pool Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * fix: tests Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * fix: confusing naming Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * refactor: shutdown over watchdog stop Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * fix: missed include Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * refactor: replace thread handler by context Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * fix: review issue Co-authored-by: Ruslan Tushov <turuslan@users.noreply.github.com> * fix: review issue Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * fix: tests Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * fix: review issue Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * fix: test Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * fix: tests Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> * fix: test Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> --------- Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com> Co-authored-by: Ruslan Tushov <turuslan@users.noreply.github.com>
- Loading branch information
Showing
64 changed files
with
949 additions
and
632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
race:soralog::Logger::push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Copyright Quadrivium LLC | ||
* All Rights Reserved | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "api/transport/rpc_io_context.hpp" | ||
#include "utils/thread_pool.hpp" | ||
#include "utils/watchdog.hpp" | ||
|
||
namespace kagome::api { | ||
class RpcThreadPool final : public ThreadPool { | ||
public: | ||
RpcThreadPool(std::shared_ptr<Watchdog> watchdog, | ||
std::shared_ptr<RpcContext> rpc_context) | ||
: ThreadPool(std::move(watchdog), "rpc", 1, std::move(rpc_context)) {} | ||
}; | ||
} // namespace kagome::api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Copyright Quadrivium LLC | ||
* All Rights Reserved | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "utils/thread_pool.hpp" | ||
#include "utils/watchdog.hpp" | ||
|
||
namespace kagome::common { | ||
class WorkerThreadPool final : public ThreadPool { | ||
public: | ||
WorkerThreadPool(std::shared_ptr<Watchdog> watchdog) | ||
: ThreadPool( | ||
std::move(watchdog), | ||
"worker", | ||
std::max<size_t>(3, std::thread::hardware_concurrency()) - 1, | ||
std::nullopt) {} | ||
}; | ||
} // namespace kagome::common |
Oops, something went wrong.