i have threads starting point
for _ in xrange(THREADS_COUNT):
global thread_
thread_ = threading.Thread(target=self.mainWork, args=(mainProject,victims))
thread_.start()
time.sleep(5)
and i need to lock all threads but one(in which happened if) when if occur.
if 'di_unread_inbox' in inbox_page:
...
and when else condition occur, i need to unlock threads if them are locked(check for locking required i think)