nah , the problem is that i have none to send the posix signals too the MainLoop; blocks , it REALLY blocks and only exits when the window is closed, which is a bit too late to update the title or some things in it :(
or should i somehow mystically break through it ? ps , about POSIX:sigaction the help says : *sigaction *Detailed signal management. This uses *POSIX::SigAction objects for the action and oldaction arguments. *Consult your system's sigaction manpage for details. *Synopsis: * sigaction(sig, action, oldaction = 0) for 1 aint sure it works on win32 [might be, but aint sure] for 2 does it break out of the MainLoop; specified by Tk ? aint sure about it :( the parameter handling would be no problem if i passed it on asynchronusly by a shared scalar or smth like that, because i have only one updater thread in mind Martin #$%>-----Original Message----- #$%>From: Elizabeth Mattijsen [mailto:[EMAIL PROTECTED]] #$%>Sent: Sunday, September 22, 2002 9:54 PM #$%>To: Martin Roos; Perl-Ithreads #$%>Subject: Re: ithreads & Tk -- Any help ??? #$%> #$%> #$%>At 09:43 PM 9/22/02 +0300, Martin Roos wrote: #$%>> anyway, is there any hope to get this working ? #$%>> i need an external thread to update the main window from #$%>time to time. #$%>> but it seems a bit hard to do when i can't access the window #$%>that has been #$%>>created :( #$%>> maybe some kind of a back hand reference thingy could/may work ? #$%>> i already played around with some references and stuff but #$%>didn't work that #$%>>easily :( #$%> #$%>Tk is (to my knowledge, someone correct me if I'm wrong) ready for #$%>threads. This means it will probably work with a threaded #$%>Perl, but only #$%>as long as all the Tk events are handled by the same thread. #$%> #$%>But there are reliable signals now in Perl. This means that #$%>you can have #$%>an external process (or thread if your on Linux and want to use #$%>Thread::Signal) send a signal to have alter_title() called when #$%>you need #$%>it. Only passing parameters may be a bit troublesome ;-) #$%> #$%>You might need POSIX::sigaction (see the POSIX.pm pod) to make #$%>sure that #$%>the signal is served at all times (rather than after a system #$%>routine times #$%>out). Just setting %SIG just doesn't cut it in some cases... #$%> #$%> #$%>Hope this helps, #$%> #$%> #$%>Liz #$%>
