Lazy SOB that I am, I come again seeking help getting Python to do what I want. I want to have a bunch of threads that put keys in a dictionary, and another thread that enumerates the same dictionary from time to time. naturally, I want to wrap the dictionary with a mutex.
I've figured out how to spawn threads, but I can't yet wrap my head around how the mutexes work in Python. I've googled and come up with nothing useful. Some sample code would be nice.
(The closest I've come is some recommendation to use event queues to talk between threads. That's a kluge. All my experience in real time work tells me not to use a queue without a damn good reason. It opens the door to queue backup and all its attendant horrors.)
Any pointers? Thanks in advance.