Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: perl tk mainwindow hangs

by bulk88 (Priest)
on Sep 24, 2013 at 03:37 UTC ( #1055428=note: print w/replies, xml ) Need Help??

in reply to perl tk mainwindow hangs

Since you say you cant use ithreads, you have to break the CPU heavy (I hope the reason your blocking is CPU, and not IO, since IO can be made async with a medium amount of work) workload into chunks, or during the work, every 100 ms poll to the GUI event loop for the event loop to service pending GUI events.

Replies are listed 'Best First'.
Re^2: perl tk mainwindow hangs
by simonz (Sexton) on Sep 24, 2013 at 04:01 UTC

    Hi ,
    Can you please give some coding hints of how to poll the GUI event loop to serve the pending GUI events ?

      لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055428]
[GotToBTru]: ugh. Thanks Corion
[shmem]: meh. setting up a SIG{__DIE__} before loading Net::SSLeay still triggers Can't locate object method "tid" via package "threads" at /usr/share/perl/5. 20/
[choroba]: setting in a BEGIN block?
[shmem]: choroba, yes

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-07-26 15:11 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (396 votes). Check out past polls.