websocket
This commit is contained in:
@@ -256,6 +256,10 @@ struct POS_List {
|
|||||||
std::lock_guard g(mtx.mtx);
|
std::lock_guard g(mtx.mtx);
|
||||||
return count == 0;
|
return count == 0;
|
||||||
}
|
}
|
||||||
|
std::uint64_t current_seq() {
|
||||||
|
std::lock_guard g(mtx.mtx);
|
||||||
|
return seq;
|
||||||
|
}
|
||||||
std::optional<Position_Info> last() {
|
std::optional<Position_Info> last() {
|
||||||
std::lock_guard g(mtx.mtx);
|
std::lock_guard g(mtx.mtx);
|
||||||
if (count == 0) return std::nullopt;
|
if (count == 0) return std::nullopt;
|
||||||
|
|||||||
Reference in New Issue
Block a user