mirror of
https://github.com/KingDuckZ/incredis
synced 2025-08-07 12:59:46 +00:00
Pass down a ThreadContext instead of a bare std::atomic.
This commit is contained in:
parent
4d8adc19f2
commit
930fde41c8
4 changed files with 50 additions and 17 deletions
|
@ -25,12 +25,12 @@
|
|||
|
||||
namespace std {
|
||||
template <class R> class future;
|
||||
template <class T> struct atomic;
|
||||
} //namespace std
|
||||
|
||||
namespace redis {
|
||||
class Command;
|
||||
class AsyncConnection;
|
||||
class ThreadContext;
|
||||
|
||||
class Batch {
|
||||
friend class Command;
|
||||
|
@ -54,7 +54,7 @@ namespace redis {
|
|||
private:
|
||||
struct LocalData;
|
||||
|
||||
explicit Batch ( AsyncConnection* parConn, std::atomic<std::size_t>& parPendingFutures );
|
||||
explicit Batch ( AsyncConnection* parConn, ThreadContext& parThreadContext );
|
||||
void run_pvt ( int parArgc, const char** parArgv, std::size_t* parLengths );
|
||||
|
||||
std::vector<std::future<Reply>> m_futures;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue