Don't need locks for queue inserts
This commit is contained in:
parent
ba55d24e92
commit
4fe2334b28
@ -40,8 +40,6 @@ class zmq_pubsub_iface(threading.Thread):
|
||||
self._subaddr = subaddr
|
||||
self._pubaddr = pubaddr
|
||||
self._sub_connected = False
|
||||
#self._pub_connected = False
|
||||
self._publock = threading.Lock()
|
||||
self._pubsub = pubsub()
|
||||
if pubaddr is not None:
|
||||
self._pubsocket.bind(pubaddr)
|
||||
@ -77,7 +75,6 @@ class zmq_pubsub_iface(threading.Thread):
|
||||
def __setitem__(self, key, val):
|
||||
if not self._pubaddr:
|
||||
raise Exception("No publisher address set")
|
||||
with self._publock:
|
||||
if not self.shutdown.is_set():
|
||||
self._queue.put([key, val.to_string()]) #TODO FIXME MSGQ
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user