Skip to content

Commit 7baf7f9

Browse files
committed
Reverted some previous changes
Signed-off-by: Denis Mindolin <[email protected]>
1 parent 98d460c commit 7baf7f9

File tree

2 files changed

+30
-26
lines changed

2 files changed

+30
-26
lines changed

quantum/util/impl/quantum_sequencer_configuration_impl.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ SequencerConfigurationSchemaProvider::getJsonSchemaUri()
6868
return uri;
6969
}
7070

71+
template <class SequenceKey, class Hash, class KeyEqual, class Allocator>
72+
SequencerConfiguration<SequenceKey, Hash, KeyEqual, Allocator>&
73+
SequencerConfiguration<SequenceKey, Hash, KeyEqual, Allocator>::setControlQueueId(int controlQueueId)
74+
{
75+
_controllerQueueId = controlQueueId;
76+
return *this;
77+
}
78+
79+
template <class SequenceKey, class Hash, class KeyEqual, class Allocator>
80+
int
81+
SequencerConfiguration<SequenceKey, Hash, KeyEqual, Allocator>::getControlQueueId() const
82+
{
83+
return _controllerQueueId;
84+
}
85+
7186
template <class SequenceKey, class Hash, class KeyEqual, class Allocator>
7287
SequencerConfiguration<SequenceKey, Hash, KeyEqual, Allocator>&
7388
SequencerConfiguration<SequenceKey, Hash, KeyEqual, Allocator>::setBucketCount(size_t bucketCount)
@@ -146,19 +161,4 @@ SequencerConfiguration<SequenceKey, Hash, KeyEqual, Allocator>::getExceptionCall
146161
return _exceptionCallback;
147162
}
148163

149-
template <class SequenceKey, class Hash, class KeyEqual, class Allocator>
150-
SequencerConfiguration<SequenceKey, Hash, KeyEqual, Allocator>&
151-
SequencerConfiguration<SequenceKey, Hash, KeyEqual, Allocator>::setControlQueueId(int controlQueueId)
152-
{
153-
_controllerQueueId = controlQueueId;
154-
return *this;
155-
}
156-
157-
template <class SequenceKey, class Hash, class KeyEqual, class Allocator>
158-
int
159-
SequencerConfiguration<SequenceKey, Hash, KeyEqual, Allocator>::getControlQueueId() const
160-
{
161-
return _controllerQueueId;
162-
}
163-
164164
}}

quantum/util/quantum_sequencer_configuration.h

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
#ifndef BLOOMBERG_QUANTUM_SEQUENCER_CONFIGURATION_H
1717
#define BLOOMBERG_QUANTUM_SEQUENCER_CONFIGURATION_H
1818

19+
#include <functional>
20+
#include <memory>
21+
#include <stdexcept>
22+
1923
namespace Bloomberg {
2024
namespace quantum {
2125

@@ -58,6 +62,17 @@ class SequencerConfiguration : public SequencerConfigurationSchemaProvider
5862
/// @param opaque opaque data passed when posting a task
5963
using ExceptionCallback = std::function<void(std::exception_ptr exception, void* opaque)>;
6064

65+
/// @brief Sets the id of the control queue
66+
/// @param controlQueueId the queue id
67+
/// @remark Sequencer typically processes tasks with the lower latency when the control queue is
68+
/// dedicated for the sequencer control tasks only, and no other tasks are enqueued into it.
69+
/// @return A reference to itself
70+
SequencerConfiguration& setControlQueueId(int controlQueueId);
71+
72+
/// @brief Gets the id of the control queue
73+
/// @return the queue id
74+
int getControlQueueId() const;
75+
6176
/// @brief Sets the minimal number of buckets to be used for the context hash map
6277
/// @param bucketCount the bucket number
6378
/// @return A reference to itself
@@ -99,17 +114,6 @@ class SequencerConfiguration : public SequencerConfigurationSchemaProvider
99114
/// @return the current callback
100115
const ExceptionCallback& getExceptionCallback() const;
101116

102-
/// @brief Sets the id of the control queue
103-
/// @param controlQueueId the queue id
104-
/// @remark Sequencer typically processes tasks with the lower latency when the control queue is
105-
/// dedicated for the sequencer control tasks only, and no other tasks are enqueued into it.
106-
/// @return A reference to itself
107-
SequencerConfiguration& setControlQueueId(int controlQueueId);
108-
109-
/// @brief Gets the id of the control queue
110-
/// @return the queue id
111-
int getControlQueueId() const;
112-
113117
private:
114118
size_t _bucketCount{100};
115119
Hash _hash;

0 commit comments

Comments
 (0)