Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Re: Threads and object access

by Nitrox (Chaplain)
on Dec 12, 2002 at 01:44 UTC ( [id://219232]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Threads and object access
in thread Threads and object access

The parent thread is pretty usless and is held in a "by-call state" by the PerlCtrl internals, which is why I was forced to spawn a child to do my polling.

-Nitrox

Replies are listed 'Best First'.
Re: Re: Re: Re: Threads and object access
by BrowserUk (Patriarch) on Dec 12, 2002 at 01:53 UTC

    I suppose if you bypassed the problem by creating your Win::OLE object in the child thread, you'd end up with the same problem later when you need to do something with it in the parent?


    Okay you lot, get your wings on the left, halos on the right. It's one size fits all, and "No!", you can't have a different color.
    Pick up your cloud down the end and "Yes" if you get allocated a grey one they are a bit damp under foot, but someone has to get them.
    Get used to the wings fast cos its an 8 hour day...unless the Govenor calls for a cyclone or hurricane, in which case 16 hour shifts are mandatory.
    Just be grateful that you arrived just as the tornado season finished. Them buggers are real work.

      That's the idea I'm toying with now. The issue I'm going to run into with that implementation is that the Win::OLE object is actually "passed" to my code from the VB app via the RegCallback() routine. I assume that even if I have a child spawned at that point that the PerlCtrl internals will still use the parent thread for subsequent calls from the VB app.

      -Nitrox

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://219232]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-07-17 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.