Jan Danielsson wrote: > In OS/2 C, I would do this: > > main() > { > ... > DosCreateMutexSem(NULL, &hmtx, 0UL, FALSE); > ... > } > > thread() > { > ... > DosRequestMutexSem(hmtx); > > Locked! > > DosReleaseMutexSem(hmtx); > ... > } > > How would I go about doing that in Python?
I think you will want to create a threading.Lock object. Reinhold -- http://mail.python.org/mailman/listinfo/python-list