Thank you very much to all. I found out solution. I created separate thread
from GUI and everything is working correct.
Best Regards,
/Gelios
--
http://mail.python.org/mailman/listinfo/python-list
Dennis,
I am really appreciated you comments. Thanks you very much.
And let me a little bit explain idea of program. I should did it earlier.
Instead of empty loops i already tried to use time.sleep() firstly, but
effect was same, all other threads do not working too and as experiment i
tried
Hello Dennis and Bryan!
You were absolutely right. I should show you real code instead of brain
fucking. I am very sorry.
Please find below real code. Sorry for amount of sources.
Main aspect of program is all process should be in one determined sequence
containing 3 stages. They are defined
Hi again, comments below:
> > doSomeJob(self):
> > # BLOCKING HERE ###
> > if not self.myEvent.isSet():
> > self.myEvent.wait()
>
> The initial 'if' is superflous.
Excuse me, please explain.
> > self.myEvent.clear()
> > # ... continue...
> >
>
Hi,
Thanks your reply again. Please find my comments below.
> Your code did not, and could not, use the value of counter for
> anything but busy-waiting. You had:
>
> while counter != 1:
> pass
> # ... continue...
>
> If you replace this with the semaphore, you can
s/TIPython
Does anybody have any idea? Any help will be appreciated.
Thanks in advance to ALL!
Best regards,
/Gelios
"Nodir Gulyamov" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Bryan,
>Thanks for your reply.
> I tried to test your s
I had future investigation and as I understand in POSIX compliant threads,
getting value of semaphore should be exist.
As the matter of fact Python threads is not fully POSIX compliant. Pitty!
Contining looking for another solution.
"Nodir Gulyamov" <[EMAIL PROTECTED]> wrote
Hi Bryan,
Thanks for your reply.
I tried to test your solution, but it doesn't work, hence
threading.Semaphore object hasn't method to get value of semaphore.
I looked to source code of semaphore.py and find out that value is private
variable.
Best regards,
/Gelios
"Bryan Olson" <[EMAIL PRO
Hello All!
I met some strange situation. In MainThread my program wating changes of
some variable. This variable should be changed in another thread, but loop,
which wait changing variable blocks all other threads.
Code below:
class class1:
def __init__(self):
self.counter = 0