OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace-cog commits / bb36031

Noreply messages should not wait for reply
bb360311f8ebc7f48d70735029d252f2e6e3afff
by Linas Vepstas <linasvepstas@gmail.com> · 2025-12-07T15:07:28.000Z

Changed files (2) +3 -18

opencog/persist/cog-simple/CogSimpleIO.cc +0 -12
……@@ -94,9 +94,6 @@ void CogSimpleStorage::storeAtom(const Handle& h, bool synchronous)
9494
9595 std::lock_guard<std::mutex> lck(_mtx);
9696 do_send(msg);
97
98 // Flush the response.
99 do_recv();
10097}
10198
10299void CogSimpleStorage::storeValue(const Handle& h, const Handle& key)
……@@ -114,9 +111,6 @@ void CogSimpleStorage::storeValue(const Handle& h, const Handle& key)
114111
115112 std::lock_guard<std::mutex> lck(_mtx);
116113 do_send(msg);
117
118 // Flush the response.
119 do_recv();
120114}
121115
122116void CogSimpleStorage::updateValue(const Handle& h, const Handle& key,
……@@ -135,9 +129,6 @@ void CogSimpleStorage::updateValue(const Handle& h, const Handle& key,
135129
136130 std::lock_guard<std::mutex> lck(_mtx);
137131 do_send(msg);
138
139 // Flush the response.
140 do_recv();
141132}
142133
143134void CogSimpleStorage::loadValue(const Handle& h, const Handle& key)
……@@ -379,9 +370,6 @@ std::string CogSimpleStorage::writeFrame(const Handle& hasp)
379370 {
380371 std::lock_guard<std::mutex> lck(_mtx);
381372 do_send(msg);
382
383 // Flush the response.
384 do_recv();
385373 }
386374
387375 // Store short-forms
opencog/persist/cog-storage/CogIO.cc +3 -6
……@@ -91,8 +91,7 @@ void CogStorage::storeAtom(const Handle& h, bool synchronous)
9191 msg = "(cog-set-value! " + Sexpr::encode_atom(h) +
9292 "(Predicate \"*-TruthValueKey-*\") #f)\n";
9393
94 Pkt pkt;
95 _io_queue.enqueue(this, msg, pkt, &CogStorage::noop_const);
94 _io_queue.enqueue_noreply(msg);
9695}
9796
9897void CogStorage::removeAtom(AtomSpace* frame, const Handle& h, bool recursive)
……@@ -116,8 +115,7 @@ void CogStorage::storeValue(const Handle& h, const Handle& key)
116115 Sexpr::encode_atom(key) +
117116 Sexpr::encode_value(h->getValue(key)) + ")\n";
118117
119 Pkt pkt;
120 _io_queue.enqueue(this, msg, pkt, &CogStorage::noop_const);
118 _io_queue.enqueue_noreply(msg);
121119}
122120
123121void CogStorage::updateValue(const Handle& h, const Handle& key,
……@@ -129,8 +127,7 @@ void CogStorage::updateValue(const Handle& h, const Handle& key,
129127 Sexpr::encode_atom(key) +
130128 Sexpr::encode_value(delta) + ")\n";
131129
132 Pkt pkt;
133 _io_queue.enqueue(this, msg, pkt, &CogStorage::noop_const);
130 _io_queue.enqueue_noreply(msg);
134131}
135132
136133void CogStorage::loadValue(const Handle& h, const Handle& key)